diff --git a/matrix_sdk/src/http_client.rs b/matrix_sdk/src/http_client.rs index cd7d6265..2e508d69 100644 --- a/matrix_sdk/src/http_client.rs +++ b/matrix_sdk/src/http_client.rs @@ -130,7 +130,7 @@ impl HttpClient { if let Some(content_type) = content_type { request .headers_mut() - .append(http::header::CONTENT_TYPE, content_type); + .insert(http::header::CONTENT_TYPE, content_type); } }