From 65a1595be46303afae1053a8ea3e5ecbf9dfc8b1 Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Sun, 18 Apr 2021 08:29:34 +0200 Subject: 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. --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Cargo.toml') 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" } -- cgit v1.2.3