Skip to content

Commit

Permalink
rusk: add content-type wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
herr-seppia committed Sep 4, 2024
1 parent d36ed7c commit 4e400a0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rusk/src/lib/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,13 @@ where
let wallet_wasm = include_bytes!(
"../../../target/wasm32-unknown-unknown/release/wallet_core.wasm"
);
return Ok(Response::new(Full::from(wallet_wasm.to_vec()).into()));
let mut response =
Response::new(Full::from(wallet_wasm.to_vec()).into());
response.headers_mut().append(
"Content-Type",
HeaderValue::from_static("application/wasm"),
);
return Ok(response);
}

if hyper_tungstenite::is_upgrade_request(&req) {
Expand Down

0 comments on commit 4e400a0

Please sign in to comment.