aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.lock
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2021-04-18 06:29:34 +0000
committerSven-Hendrik Haase <svenstaro@gmail.com>2021-04-18 06:29:34 +0000
commit65a1595be46303afae1053a8ea3e5ecbf9dfc8b1 (patch)
tree3c053156136c780a3518959e4259bd3e7890d2be /Cargo.lock
parentAdd CHANGELOG entry for bumped deps (diff)
downloadminiserve-65a1595be46303afae1053a8ea3e5ecbf9dfc8b1.tar.gz
miniserve-65a1595be46303afae1053a8ea3e5ecbf9dfc8b1.zip
Patch mime_guess to stop Firefox from becoming confused (fixes #160)
This was a pretty weird one. Turns out that if Firefox attempts to a open a .gz file directly but the MIME type is set as application/x-gzip instead of the more correct application/gzip then the file will somehow corrupt. I suspect it's trying to double-decode the file.
Diffstat (limited to 'Cargo.lock')
-rw-r--r--Cargo.lock3
1 files changed, 1 insertions, 2 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 9629fc3..3e2f80e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1491,8 +1491,7 @@ checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d"
[[package]]
name = "mime_guess"
version = "2.0.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2684d4c2e97d99848d30b324b00c8fcc7e5c897b7cbb5819b09e7c90e8baf212"
+source = "git+https://github.com/svenstaro/mime_guess.git#ac76840e14bc6f2f7cbbb347052ec7e4de7e3043"
dependencies = [
"mime",
"unicase",