From 920feb428b82309922c162ea5dd62e644a0e0f16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=E1=BA=A1=20Quan=20Minh=20Long?= Date: Sat, 29 Jun 2024 14:13:53 +0700 Subject: [PATCH] Add support for application `application/x-gzip`, equivalent of `application/gzip` since some servers still use this type of content-type header (#89) reference: https://stackoverflow.com/questions/21870351/difference-between-x-gzip-and-gzip-for-content-encoding https://mimetype.io/application/x-gzip --- src/mime_types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mime_types.rs b/src/mime_types.rs index a31d441..0ba73d0 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -450,7 +450,7 @@ pub static MIME_TYPES: &[(&str, &[&str])] = &[ ("gv", &["text/vnd.graphviz"]), ("gxf", &["application/gxf"]), ("gxt", &["application/vnd.geonext"]), - ("gz", &["application/gzip"]), + ("gz", &["application/gzip", "application/x-gzip"]), ("h", &["text/plain"]), ("h261", &["video/h261"]), ("h263", &["video/h263"]),