Skip to content

Commit

Permalink
fix(Serve): Update for API change to rust-embed
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed Aug 1, 2021
1 parent 2c84021 commit d108850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/src/serve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ async fn get_static(
};
let mime = mime_guess::from_path(path).first_or_octet_stream();

let mut res = warp::reply::Response::new(asset.into());
let mut res = warp::reply::Response::new(asset.data.into());
res.headers_mut().insert(
"content-type",
HeaderValue::from_str(mime.as_ref()).unwrap(),
Expand Down

0 comments on commit d108850

Please sign in to comment.