Skip to content

Commit

Permalink
fix: wasm client: pass response header to builder by reference (#1350)
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Oct 13, 2021
1 parent 597833d commit c9217d8
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 c9217d8

Please sign in to comment.