We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 914e622 commit 8bf8a8eCopy full SHA for 8bf8a8e
async-openai/src/request_options.rs
@@ -20,7 +20,7 @@ impl RequestOptions {
20
pub fn with_headers(&mut self, headers: HeaderMap) {
21
// merge with existing headers or update with new headers
22
if let Some(existing_headers) = &mut self.headers {
23
- existing_headers.extend(headers.into_iter());
+ existing_headers.extend(headers);
24
} else {
25
self.headers = Some(headers);
26
}
@@ -39,7 +39,7 @@ impl RequestOptions {
39
headers.insert(key, value);
40
41
let mut headers = HeaderMap::new();
42
- headers.insert(key, value.into());
+ headers.insert(key, value);
43
44
45
Ok(())
0 commit comments