We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce6ed00 commit b49c823Copy full SHA for b49c823
src/plex_client.rs
@@ -88,11 +88,14 @@ impl PlexClient {
88
self.host,
89
&req.uri_mut().path_and_query().unwrap()
90
);
91
+
92
+ let mut headers = req.headers_mut().clone();
93
+ headers.remove(ACCEPT); // remove accept as we always do json request
94
95
let res = self
96
.http_client
97
.request(req.method_mut().to_owned(), url)
- .headers(req.headers_mut().clone())
98
+ .headers(headers)
99
.send()
100
.await
101
.map_err(Error::other)?;
0 commit comments