aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.toml
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.toml
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.toml')
-rw-r--r--Cargo.toml5
1 files changed, 5 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index cc264ca..e1ff588 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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" }