]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add RFC 6713 mime types for 'zlib' and 'gzip' 2269/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Tue, 29 May 2018 06:28:49 +0000 (06:28 +0000)
committerGitHub <noreply@github.com>
Tue, 29 May 2018 06:28:49 +0000 (06:28 +0000)
src/plugins/lua/mime_types.lua

index 97abf1685623f598cf8f093ff1d3ea46ca88bce2..f97f22d2a649020ed8b6bdee4048899276591d0a 100644 (file)
@@ -344,7 +344,7 @@ local full_extensions_map = {
   {"group", "text/x-ms-group"},
   {"gsm", "audio/x-gsm"},
   {"gtar", "application/x-gtar"},
-  {"gz", "application/x-gzip"},
+  {"gz", {"application/gzip", "application/x-gzip"}},
   {"h", "text/plain"},
   {"hdf", "application/x-hdf"},
   {"hdml", "text/x-hdml"},
@@ -798,6 +798,7 @@ local full_extensions_map = {
   {"xwd", "image/x-xwindowdump"},
   {"z", "application/x-compress"},
   {"zip", {"application/zip", "application/x-zip-compressed", "application/octet-stream"}},
+  {"zlib", "application/zlib"},
 }
 
 local function check_mime_type(task)