Skip to content

Commit c0db207

Browse files
committed
Fix #578 file handling
1 parent 320ffe7 commit c0db207

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ features = ["rustls"]
6969
version = "4"
7070

7171
[dependencies.actix-web-static-files]
72+
# https://github.com/kilork/actix-web-static-files/pull/55#pullrequestreview-1286027898
7273
git = "https://github.com/joepio/actix-web-static-files/"
74+
rev = "3b4b2e3b204ba5f628bb240ecc490edd9cd7f88d"
7375
version = "4"
7476

7577
[dependencies.atomic_lib]

server/src/routes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub fn config_routes(app: &mut actix_web::web::ServiceConfig) {
1919
app.service(web::resource("/ws").to(handlers::web_sockets::web_socket_handler))
2020
.service(web::resource("/download/{path:[^{}]+}").to(handlers::download::handle_download))
2121
// This `generate` imports the static files from the `app_assets` folder
22-
.service(ResourceFiles::new("/", generate()).do_use_guard())
22+
.service(ResourceFiles::new("/", generate()).skip_handler_when_not_found())
2323
// Catch all (non-download) HTML requests and send them to the single page app
2424
.service(
2525
web::resource(ANY)

0 commit comments

Comments
 (0)