Skip to content

Commit 61e960c

Browse files
committed
fix: Don't crash when assets contain unknown extension
1 parent 3854977 commit 61e960c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Cargo.lock

Lines changed: 4 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ serde = { version = "1.0.219", features = ["derive", "rc"] }
4343
# Error declaration/context
4444
snafu = "0.8.8"
4545
# Serve static assets directly from the binary
46-
static-serve = "0.3.0"
46+
# Wait for https://github.com/M4SS-Code/static-serve/pull/8
47+
# static-serve = "0.3.0"
48+
static-serve = { git = "https://github.com/angrynode/static-serve", branch = "infallible-mimetype", features = [ "infallible" ] }
4749
# Extra tokio features:
4850
# fs: Filesystem IO integration
4951
# rt: Single-threaded runtime

0 commit comments

Comments
 (0)