Skip to content

Commit

Permalink
fix: wasm client: pass response header to builder by reference
Browse files Browse the repository at this point in the history
Co-authored-by: crapStone <crapstone01@gmail.com>
  • Loading branch information
6543 and crapStone committed Oct 12, 2021
1 parent 597833d commit 0a4b123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wasm/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ async fn fetch(req: Request) -> crate::Result<Response> {
.into();
let [name, value]: [String; 2] = serde_json::from_str(&serialized_headers)
.expect_throw("deserializable serialized headers");
resp = resp.header(name, value);
resp = resp.header(&name, &value);
}

resp.body(js_resp)
Expand Down

0 comments on commit 0a4b123

Please sign in to comment.