Skip to content

Commit 1a48909

Browse files
committed
Fix wasm panic when trying to change the user-agent
1 parent 7c7f081 commit 1a48909

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/request.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,11 @@ pub(crate) async fn request<Input: Serialize, Output: DeserializeOwned + 'static
109109

110110
const CONTENT_TYPE: &str = "Content-Type";
111111
const JSON: &str = "application/json";
112-
let user_agent = qualified_version();
113112

114113
// The 2 following unwraps should not be able to fail
115114
let mut mut_url = url.clone().to_string();
116115
let headers = Headers::new().unwrap();
117116
headers.append("Authorization: Bearer", apikey).unwrap();
118-
headers.append("User-Agent", &user_agent).unwrap();
119117

120118
let mut request: RequestInit = RequestInit::new();
121119
request.headers(&headers);

0 commit comments

Comments
 (0)