remove extra content type from header, fix #331

This commit is contained in:
jb-alvarado 2023-06-16 19:51:57 +02:00
parent d2c4348761
commit a4fa9cb353
3 changed files with 6 additions and 10 deletions

8
Cargo.lock generated
View File

@ -955,7 +955,7 @@ dependencies = [
[[package]]
name = "ffplayout"
version = "0.18.2"
version = "0.18.3"
dependencies = [
"chrono",
"clap",
@ -975,7 +975,7 @@ dependencies = [
[[package]]
name = "ffplayout-api"
version = "0.18.2"
version = "0.18.3"
dependencies = [
"actix-files",
"actix-multipart",
@ -1008,7 +1008,7 @@ dependencies = [
[[package]]
name = "ffplayout-lib"
version = "0.18.2"
version = "0.18.3"
dependencies = [
"chrono",
"crossbeam-channel",
@ -2891,7 +2891,7 @@ dependencies = [
[[package]]
name = "tests"
version = "0.18.2"
version = "0.18.3"
dependencies = [
"chrono",
"crossbeam-channel",

View File

@ -3,7 +3,7 @@ members = ["ffplayout-api", "ffplayout-engine", "lib", "tests"]
default-members = ["ffplayout-api", "ffplayout-engine", "tests"]
[workspace.package]
version = "0.18.2"
version = "0.18.3"
license = "GPL-3.0"
repository = "https://github.com/ffplayout/ffplayout"
authors = ["Jonathan Baecker <jonbae77@gmail.com>"]

View File

@ -7,7 +7,7 @@ use std::{
use actix_web::web;
use reqwest::{
header::{HeaderMap, AUTHORIZATION, CONTENT_TYPE},
header::{HeaderMap, AUTHORIZATION},
Client, Response,
};
use serde::{Deserialize, Serialize};
@ -265,10 +265,6 @@ impl SystemD {
fn create_header(auth: &str) -> HeaderMap {
let mut headers = HeaderMap::new();
headers.insert(
CONTENT_TYPE,
"Content-Type: application/json".parse().unwrap(),
);
headers.insert(AUTHORIZATION, auth.parse().unwrap());
headers