aboutsummaryrefslogtreecommitdiff
path: root/server/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/main.rs')
-rw-r--r--server/src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/main.rs b/server/src/main.rs
index 518ea99..c818eb5 100644
--- a/server/src/main.rs
+++ b/server/src/main.rs
@@ -42,10 +42,10 @@ async fn run() {
.and(warp::ws())
.map(signaling_connect);
- let index: _ = warp::path!().and(s_file!("client-web/public/start.html"));
- let room: _ = warp::path!("room").and(s_file!("client-web/public/app.html"));
+ let index: _ = warp::path!().and(s_file!("client-web/public/start.html", "text/html"));
+ let room: _ = warp::path!("room").and(s_file!("client-web/public/app.html", "text/html"));
let assets: _ = warp::path("assets").and(s_asset_dir!());
- let sw_script: _ = warp::path("sw.js").and(s_file!("client-web/public/assets/sw.js"));
+ let sw_script: _ = warp::path("sw.js").and(s_file!("client-web/public/assets/sw.js", "application/javascript"));
let favicon: _ = warp::path!("favicon.ico").map(|| "");
let old_format_redirect: _ = warp::path!("room" / String).map(|rsecret| {
reply::with_header(