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.toml | |
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.toml')
-rw-r--r-- | Cargo.toml | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -62,3 +62,8 @@ url = "2" [build-dependencies] grass = "0.10" + +# This needs to stay here at least until https://github.com/abonander/mime_guess/pull/66 is merged. +# Also see https://github.com/svenstaro/miniserve/issues/160 +[patch.crates-io] +mime_guess = { git = "https://github.com/svenstaro/mime_guess.git" } |