Skip to content

Commit

Permalink
Add support for application application/x-gzip, equivalent of `appl…
Browse files Browse the repository at this point in the history
…ication/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
  • Loading branch information
TaQuanMinhLong authored Jun 29, 2024
1 parent aac5aa7 commit 920feb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mime_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"]),
Expand Down

0 comments on commit 920feb4

Please sign in to comment.