fix(client): remove the Content-Type from the headers of the reqwest builders. (#14)

They apparently are conflicting with reqwest internal stufs.

fix #13
This commit is contained in:
francois-caddet
2024-08-22 00:45:06 +02:00
committed by GitHub
parent 67aa5bbaef
commit 9bfbf2e9dc

View File

@@ -384,7 +384,6 @@ impl Client {
let request_builder = request
.bearer_auth(&self.api_key)
.header("Accept", "application/json")
.header("Content-Type", "application/json")
.header("User-Agent", user_agent);
request_builder
@@ -399,7 +398,6 @@ impl Client {
let request_builder = request
.bearer_auth(&self.api_key)
.header("Accept", "application/json")
.header("Content-Type", "application/json")
.header("User-Agent", user_agent);
request_builder
@@ -414,7 +412,6 @@ impl Client {
let request_builder = request
.bearer_auth(&self.api_key)
.header("Accept", "text/event-stream")
.header("Content-Type", "application/json")
.header("User-Agent", user_agent);
request_builder