From 3f744c0361d66d6865ddb850988da5ce078106f7 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Wed, 31 Oct 2018 14:15:27 -0700 Subject: [PATCH] Fix mimedb update files (#6744) --- pkg/mimedb/db.go | 222 ++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 211 insertions(+), 11 deletions(-) diff --git a/pkg/mimedb/db.go b/pkg/mimedb/db.go index 5a8b61743..7f5a3402f 100644 --- a/pkg/mimedb/db.go +++ b/pkg/mimedb/db.go @@ -144,6 +144,10 @@ var DB = map[string]struct { ContentType: "application/vnd.android.package-archive", Compressible: false, }, + "apng": { + ContentType: "image/apng", + Compressible: false, + }, "appcache": { ContentType: "text/cache-manifest", Compressible: false, @@ -160,6 +164,10 @@ var DB = map[string]struct { ContentType: "application/x-freearc", Compressible: false, }, + "arj": { + ContentType: "application/x-arj", + Compressible: false, + }, "asc": { ContentType: "application/pgp-signature", Compressible: false, @@ -220,6 +228,10 @@ var DB = map[string]struct { ContentType: "application/vnd.airzip.filesecure.azs", Compressible: false, }, + "azv": { + ContentType: "image/vnd.airzip.accelerator.azv", + Compressible: false, + }, "azw": { ContentType: "application/vnd.amazon.ebook", Compressible: false, @@ -576,6 +588,10 @@ var DB = map[string]struct { ContentType: "application/x-csh", Compressible: false, }, + "csl": { + ContentType: "application/vnd.citationstyles.style+xml", + Compressible: false, + }, "csml": { ContentType: "chemical/x-csml", Compressible: false, @@ -692,6 +708,10 @@ var DB = map[string]struct { ContentType: "application/vnd.mobius.dis", Compressible: false, }, + "disposition-notification": { + ContentType: "message/disposition-notification", + Compressible: false, + }, "dist": { ContentType: "application/octet-stream", Compressible: false, @@ -764,6 +784,10 @@ var DB = map[string]struct { ContentType: "audio/vnd.dra", Compressible: false, }, + "drle": { + ContentType: "image/dicom-rle", + Compressible: false, + }, "dsc": { ContentType: "text/prs.lines.tag", Compressible: false, @@ -861,7 +885,7 @@ var DB = map[string]struct { Compressible: false, }, "emf": { - ContentType: "application/x-msmetafile", + ContentType: "image/emf", Compressible: false, }, "eml": { @@ -892,6 +916,10 @@ var DB = map[string]struct { ContentType: "application/epub+zip", Compressible: false, }, + "es": { + ContentType: "application/ecmascript", + Compressible: false, + }, "es3": { ContentType: "application/vnd.eszigno3+xml", Compressible: false, @@ -928,6 +956,10 @@ var DB = map[string]struct { ContentType: "application/exi", Compressible: false, }, + "exr": { + ContentType: "image/aces", + Compressible: false, + }, "ext": { ContentType: "application/vnd.novadigm.ext", Compressible: false, @@ -1012,6 +1044,10 @@ var DB = map[string]struct { ContentType: "application/x-xfig", Compressible: false, }, + "fits": { + ContentType: "image/fits", + Compressible: false, + }, "flac": { ContentType: "audio/x-flac", Compressible: false, @@ -1132,6 +1168,10 @@ var DB = map[string]struct { ContentType: "application/vnd.dynageo", Compressible: false, }, + "geojson": { + ContentType: "application/geo+json", + Compressible: false, + }, "gex": { ContentType: "application/vnd.geometry-explorer", Compressible: false, @@ -1156,6 +1196,14 @@ var DB = map[string]struct { ContentType: "application/vnd.groove-identity-message", Compressible: false, }, + "glb": { + ContentType: "model/gltf-binary", + Compressible: false, + }, + "gltf": { + ContentType: "model/gltf+json", + Compressible: false, + }, "gml": { ContentType: "application/gml+xml", Compressible: false, @@ -1240,6 +1288,10 @@ var DB = map[string]struct { ContentType: "application/vnd.geonext", Compressible: false, }, + "gz": { + ContentType: "application/gzip", + Compressible: false, + }, "h": { ContentType: "text/x-c", Compressible: false, @@ -1268,16 +1320,36 @@ var DB = map[string]struct { ContentType: "text/x-handlebars-template", Compressible: false, }, + "hdd": { + ContentType: "application/x-virtualbox-hdd", + Compressible: false, + }, "hdf": { ContentType: "application/x-hdf", Compressible: false, }, + "heic": { + ContentType: "image/heic", + Compressible: false, + }, + "heics": { + ContentType: "image/heic-sequence", + Compressible: false, + }, + "heif": { + ContentType: "image/heif", + Compressible: false, + }, + "heifs": { + ContentType: "image/heif-sequence", + Compressible: false, + }, "hh": { ContentType: "text/x-c", Compressible: false, }, "hjson": { - ContentType: "text/hjson", + ContentType: "application/hjson", Compressible: false, }, "hlp": { @@ -1484,6 +1556,10 @@ var DB = map[string]struct { ContentType: "application/vnd.jisp", Compressible: false, }, + "jls": { + ContentType: "image/jls", + Compressible: false, + }, "jlt": { ContentType: "application/vnd.hp-jlyt", Compressible: false, @@ -1500,6 +1576,10 @@ var DB = map[string]struct { ContentType: "application/vnd.joost.joda-archive", Compressible: false, }, + "jp2": { + ContentType: "image/jp2", + Compressible: false, + }, "jpe": { ContentType: "image/jpeg", Compressible: false, @@ -1508,10 +1588,18 @@ var DB = map[string]struct { ContentType: "image/jpeg", Compressible: false, }, + "jpf": { + ContentType: "image/jpx", + Compressible: false, + }, "jpg": { ContentType: "image/jpeg", Compressible: false, }, + "jpg2": { + ContentType: "image/jp2", + Compressible: false, + }, "jpgm": { ContentType: "video/jpm", Compressible: false, @@ -1524,6 +1612,10 @@ var DB = map[string]struct { ContentType: "video/jpm", Compressible: false, }, + "jpx": { + ContentType: "image/jpx", + Compressible: false, + }, "js": { ContentType: "application/javascript", Compressible: false, @@ -1556,6 +1648,10 @@ var DB = map[string]struct { ContentType: "application/vnd.kde.karbon", Compressible: false, }, + "keynote": { + ContentType: "application/vnd.apple.keynote", + Compressible: false, + }, "kfo": { ContentType: "application/vnd.kde.kformula", Compressible: false, @@ -1797,7 +1893,7 @@ var DB = map[string]struct { Compressible: false, }, "markdown": { - ContentType: "text/x-markdown", + ContentType: "text/markdown", Compressible: false, }, "mathml": { @@ -1829,7 +1925,7 @@ var DB = map[string]struct { Compressible: false, }, "md": { - ContentType: "text/x-markdown", + ContentType: "text/markdown", Compressible: false, }, "mdb": { @@ -1904,6 +2000,10 @@ var DB = map[string]struct { ContentType: "video/mj2", Compressible: false, }, + "mjs": { + ContentType: "application/javascript", + Compressible: false, + }, "mk3d": { ContentType: "video/x-matroska", Compressible: false, @@ -2084,6 +2184,10 @@ var DB = map[string]struct { ContentType: "application/vnd.epson.msf", Compressible: false, }, + "msg": { + ContentType: "application/vnd.ms-outlook", + Compressible: false, + }, "msh": { ContentType: "model/mesh", Compressible: false, @@ -2220,6 +2324,10 @@ var DB = map[string]struct { ContentType: "application/vnd.nitf", Compressible: false, }, + "numbers": { + ContentType: "application/vnd.apple.numbers", + Compressible: false, + }, "nzb": { ContentType: "application/x-nzb", Compressible: false, @@ -2337,7 +2445,7 @@ var DB = map[string]struct { Compressible: false, }, "org": { - ContentType: "application/vnd.lotus-organizer", + ContentType: "text/x-org", Compressible: false, }, "osf": { @@ -2353,7 +2461,7 @@ var DB = map[string]struct { Compressible: false, }, "otf": { - ContentType: "font/opentype", + ContentType: "font/otf", Compressible: false, }, "otg": { @@ -2380,6 +2488,18 @@ var DB = map[string]struct { ContentType: "application/vnd.oasis.opendocument.text-template", Compressible: false, }, + "ova": { + ContentType: "application/x-virtualbox-ova", + Compressible: false, + }, + "ovf": { + ContentType: "application/x-virtualbox-ovf", + Compressible: false, + }, + "owl": { + ContentType: "application/rdf+xml", + Compressible: false, + }, "oxps": { ContentType: "application/oxps", Compressible: false, @@ -2428,6 +2548,10 @@ var DB = map[string]struct { ContentType: "application/x-ns-proxy-autoconfig", Compressible: false, }, + "pages": { + ContentType: "application/vnd.apple.pages", + Compressible: false, + }, "pas": { ContentType: "text/x-pascal", Compressible: false, @@ -2668,6 +2792,10 @@ var DB = map[string]struct { ContentType: "application/pskc+xml", Compressible: false, }, + "pti": { + ContentType: "image/prs.pti", + Compressible: false, + }, "ptid": { ContentType: "application/vnd.pvi.ptid1", Compressible: false, @@ -2744,6 +2872,10 @@ var DB = map[string]struct { ContentType: "audio/x-pn-realaudio", Compressible: false, }, + "raml": { + ContentType: "application/raml+yaml", + Compressible: false, + }, "rar": { ContentType: "application/x-rar-compressed", Compressible: false, @@ -3028,6 +3160,10 @@ var DB = map[string]struct { ContentType: "application/x-shar", Compressible: false, }, + "shex": { + ContentType: "text/shex", + Compressible: false, + }, "shf": { ContentType: "application/shf+xml", Compressible: false, @@ -3328,6 +3464,10 @@ var DB = map[string]struct { ContentType: "application/x-t3vm-image", Compressible: false, }, + "t38": { + ContentType: "image/t38", + Compressible: false, + }, "taglet": { ContentType: "application/vnd.mynfc", Compressible: false, @@ -3336,6 +3476,10 @@ var DB = map[string]struct { ContentType: "application/vnd.tao.intent-module-archive", Compressible: false, }, + "tap": { + ContentType: "image/vnd.tencent.tap", + Compressible: false, + }, "tar": { ContentType: "application/x-tar", Compressible: false, @@ -3384,6 +3528,10 @@ var DB = map[string]struct { ContentType: "application/x-tex-tfm", Compressible: false, }, + "tfx": { + ContentType: "image/tiff-fx", + Compressible: false, + }, "tga": { ContentType: "image/x-tga", Compressible: false, @@ -3445,11 +3593,11 @@ var DB = map[string]struct { Compressible: false, }, "ttc": { - ContentType: "application/x-font-ttf", + ContentType: "font/collection", Compressible: false, }, "ttf": { - ContentType: "application/x-font-ttf", + ContentType: "font/ttf", Compressible: false, }, "ttl": { @@ -3480,6 +3628,22 @@ var DB = map[string]struct { ContentType: "application/x-authorware-bin", Compressible: false, }, + "u8dsn": { + ContentType: "message/global-delivery-status", + Compressible: false, + }, + "u8hdr": { + ContentType: "message/global-headers", + Compressible: false, + }, + "u8mdn": { + ContentType: "message/global-disposition-notification", + Compressible: false, + }, + "u8msg": { + ContentType: "message/global", + Compressible: false, + }, "udeb": { ContentType: "application/x-debian-package", Compressible: false, @@ -3644,6 +3808,14 @@ var DB = map[string]struct { ContentType: "application/vnd.dece.zip", Compressible: false, }, + "vbox": { + ContentType: "application/x-virtualbox-vbox", + Compressible: false, + }, + "vbox-extpack": { + ContentType: "application/x-virtualbox-vbox-extpack", + Compressible: false, + }, "vcard": { ContentType: "text/vcard", Compressible: false, @@ -3668,6 +3840,14 @@ var DB = map[string]struct { ContentType: "application/vnd.vcx", Compressible: false, }, + "vdi": { + ContentType: "application/x-virtualbox-vdi", + Compressible: false, + }, + "vhd": { + ContentType: "application/x-virtualbox-vhd", + Compressible: false, + }, "vis": { ContentType: "application/vnd.visionary", Compressible: false, @@ -3676,6 +3856,10 @@ var DB = map[string]struct { ContentType: "video/vnd.vivo", Compressible: false, }, + "vmdk": { + ContentType: "application/x-virtualbox-vmdk", + Compressible: false, + }, "vob": { ContentType: "video/x-ms-vob", Compressible: false, @@ -3712,6 +3896,10 @@ var DB = map[string]struct { ContentType: "application/vnd.visio", Compressible: false, }, + "vtf": { + ContentType: "image/vnd.valve.source.texture", + Compressible: false, + }, "vtt": { ContentType: "text/vtt", Compressible: false, @@ -3732,10 +3920,18 @@ var DB = map[string]struct { ContentType: "application/x-doom", Compressible: false, }, + "wadl": { + ContentType: "application/vnd.sun.wadl+xml", + Compressible: false, + }, "war": { ContentType: "application/java-archive", Compressible: false, }, + "wasm": { + ContentType: "application/wasm", + Compressible: false, + }, "wav": { ContentType: "audio/x-wav", Compressible: false, @@ -3813,7 +4009,7 @@ var DB = map[string]struct { Compressible: false, }, "wmf": { - ContentType: "application/x-msmetafile", + ContentType: "image/wmf", Compressible: false, }, "wml": { @@ -3845,11 +4041,11 @@ var DB = map[string]struct { Compressible: false, }, "woff": { - ContentType: "application/font-woff", + ContentType: "font/woff", Compressible: false, }, "woff2": { - ContentType: "application/font-woff2", + ContentType: "font/woff2", Compressible: false, }, "wpd": { @@ -3876,6 +4072,10 @@ var DB = map[string]struct { ContentType: "model/vrml", Compressible: false, }, + "wsc": { + ContentType: "message/vnd.wfa.wsc", + Compressible: false, + }, "wsdl": { ContentType: "application/wsdl+xml", Compressible: false,