Skip to content

Commit

Permalink
fix(fetcher/wasm): append instead of insert for headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Vexcited authored Jan 10, 2025
1 parent fe1832f commit 6253dc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fetcher/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pub async fn fetch(request: Request, fetcher: &js_sys::Function) -> Result<Respo
let key = HeaderName::from_str(key.as_str()).unwrap();
let value = value.parse().unwrap();

headers.insert(key, value);
headers.append(key, value);
}

Ok(Response {
Expand Down

0 comments on commit 6253dc9

Please sign in to comment.