diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2021-04-18 06:29:34 +0000 |
---|---|---|
committer | Sven-Hendrik Haase <svenstaro@gmail.com> | 2021-04-18 06:29:34 +0000 |
commit | 65a1595be46303afae1053a8ea3e5ecbf9dfc8b1 (patch) | |
tree | 3c053156136c780a3518959e4259bd3e7890d2be /Cargo.lock | |
parent | Add CHANGELOG entry for bumped deps (diff) | |
download | miniserve-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.lock | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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", |