Remove redundant Content-Type header field
When a Form is being submitted
content-type: multipart/form-data; ...
header field is added automatically by reqwest.
Multiple Content-Type header fields are explicitly
forbidden by the HTTP standard.
@@ -87,10 +87,6 @@ pub fn upload(
let client = Client::new();
let response = client
.post(registry.url.clone())
- .header(
- reqwest::header::CONTENT_TYPE,
- "application/json; charset=utf-8",
- )
.header(
reqwest::header::USER_AGENT,
format!("{}/{}", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION")),
