| 1 |
package mimetype |
| 2 |
|
| 3 |
import ( |
| 4 |
"sync" |
| 5 |
|
| 6 |
"github.com/gabriel-vasile/mimetype/internal/magic" |
| 7 |
) |
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
var root = newMIME("application/octet-stream", "", |
| 19 |
func([]byte, uint32) bool { return true }, |
| 20 |
xpm, sevenZ, zip, pdf, fdf, ole, ps, psd, p7s, ogg, png, jpg, jxl, jp2, jpx, |
| 21 |
jpm, jxs, gif, webp, exe, elf, ar, tar, xar, bz2, fits, tiff, bmp, lotus, ico, |
| 22 |
mp3, flac, midi, ape, musePack, amr, wav, aiff, au, mpeg, quickTime, mp4, webM, |
| 23 |
avi, flv, mkv, asf, aac, voc, m3u, rmvb, gzip, class, swf, crx, ttf, woff, |
| 24 |
woff2, otf, ttc, eot, wasm, shx, dbf, dcm, rar, djvu, mobi, lit, bpg, cbor, |
| 25 |
sqlite3, dwg, nes, lnk, macho, qcp, icns, hdr, mrc, mdb, accdb, zstd, cab, |
| 26 |
rpm, xz, lzip, torrent, cpio, tzif, xcf, pat, gbr, glb, cabIS, jxr, parquet, |
| 27 |
oneNote, chm, wpd, dxf, grib, zlib, inf, hlp, fm, bufr, |
| 28 |
|
| 29 |
text, |
| 30 |
) |
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
var errMIME = newMIME("application/octet-stream", "", func([]byte, uint32) bool { return false }) |
| 36 |
|
| 37 |
|
| 38 |
var mu = &sync.RWMutex{} |
| 39 |
|
| 40 |
|
| 41 |
var ( |
| 42 |
xz = newMIME("application/x-xz", ".xz", magic.Xz) |
| 43 |
gzip = newMIME("application/gzip", ".gz", magic.Gzip).alias( |
| 44 |
"application/x-gzip", "application/x-gunzip", "application/gzipped", |
| 45 |
"application/gzip-compressed", "application/x-gzip-compressed", |
| 46 |
"gzip/document") |
| 47 |
sevenZ = newMIME("application/x-7z-compressed", ".7z", magic.SevenZ) |
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
zip = newMIME("application/zip", ".zip", magic.Zip, docx, pptx, xlsx, epub, apk, jar, odt, ods, odp, odg, odf, odc, sxc, kmz, visio). |
| 53 |
alias("application/x-zip", "application/x-zip-compressed") |
| 54 |
tar = newMIME("application/x-tar", ".tar", magic.Tar) |
| 55 |
xar = newMIME("application/x-xar", ".xar", magic.Xar) |
| 56 |
bz2 = newMIME("application/x-bzip2", ".bz2", magic.Bz2) |
| 57 |
pdf = newMIME("application/pdf", ".pdf", magic.PDF). |
| 58 |
alias("application/x-pdf") |
| 59 |
fdf = newMIME("application/vnd.fdf", ".fdf", magic.Fdf) |
| 60 |
xlsx = newMIME("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", ".xlsx", magic.Xlsx) |
| 61 |
docx = newMIME("application/vnd.openxmlformats-officedocument.wordprocessingml.document", ".docx", magic.Docx) |
| 62 |
pptx = newMIME("application/vnd.openxmlformats-officedocument.presentationml.presentation", ".pptx", magic.Pptx) |
| 63 |
visio = newMIME("application/vnd.ms-visio.drawing.main+xml", ".vsdx", magic.Visio) |
| 64 |
epub = newMIME("application/epub+zip", ".epub", magic.Epub) |
| 65 |
jar = newMIME("application/java-archive", ".jar", magic.Jar). |
| 66 |
alias("application/jar", "application/jar-archive", "application/x-java-archive") |
| 67 |
apk = newMIME("application/vnd.android.package-archive", ".apk", magic.APK) |
| 68 |
ole = newMIME("application/x-ole-storage", "", magic.Ole, msi, msg, xls, pub, ppt, doc) |
| 69 |
msi = newMIME("application/x-ms-installer", ".msi", magic.Msi). |
| 70 |
alias("application/x-windows-installer", "application/x-msi") |
| 71 |
doc = newMIME("application/msword", ".doc", magic.Doc). |
| 72 |
alias("application/vnd.ms-word") |
| 73 |
ppt = newMIME("application/vnd.ms-powerpoint", ".ppt", magic.Ppt). |
| 74 |
alias("application/mspowerpoint") |
| 75 |
pub = newMIME("application/vnd.ms-publisher", ".pub", magic.Pub) |
| 76 |
xls = newMIME("application/vnd.ms-excel", ".xls", magic.Xls). |
| 77 |
alias("application/msexcel") |
| 78 |
msg = newMIME("application/vnd.ms-outlook", ".msg", magic.Msg) |
| 79 |
ps = newMIME("application/postscript", ".ps", magic.Ps) |
| 80 |
fits = newMIME("application/fits", ".fits", magic.Fits).alias("image/fits") |
| 81 |
ogg = newMIME("application/ogg", ".ogg", magic.Ogg, oggAudio, oggVideo). |
| 82 |
alias("application/x-ogg") |
| 83 |
oggAudio = newMIME("audio/ogg", ".oga", magic.OggAudio) |
| 84 |
oggVideo = newMIME("video/ogg", ".ogv", magic.OggVideo) |
| 85 |
text = newMIME("text/plain", ".txt", magic.Text, svg, html, xml, php, js, lua, perl, python, ruby, json, ndJSON, rtf, srt, tcl, csv, tsv, vCard, iCalendar, warc, vtt, shell, netpbm, netpgm, netppm, netpam, rfc822) |
| 86 |
xml = newMIME("text/xml", ".xml", magic.XML, rss, atom, x3d, kml, xliff, collada, gml, gpx, tcx, amf, threemf, xfdf, owl2, xhtml). |
| 87 |
alias("application/xml") |
| 88 |
xhtml = newMIME("application/xhtml+xml", ".html", magic.XHTML) |
| 89 |
json = newMIME("application/json", ".json", magic.JSON, geoJSON, har, gltf) |
| 90 |
har = newMIME("application/json", ".har", magic.HAR) |
| 91 |
csv = newMIME("text/csv", ".csv", magic.CSV) |
| 92 |
tsv = newMIME("text/tab-separated-values", ".tsv", magic.TSV) |
| 93 |
geoJSON = newMIME("application/geo+json", ".geojson", magic.GeoJSON) |
| 94 |
ndJSON = newMIME("application/x-ndjson", ".ndjson", magic.NdJSON) |
| 95 |
html = newMIME("text/html", ".html", magic.HTML) |
| 96 |
php = newMIME("text/x-php", ".php", magic.Php) |
| 97 |
rtf = newMIME("text/rtf", ".rtf", magic.Rtf).alias("application/rtf") |
| 98 |
js = newMIME("text/javascript", ".js", magic.Js). |
| 99 |
alias("application/x-javascript", "application/javascript") |
| 100 |
srt = newMIME("application/x-subrip", ".srt", magic.Srt). |
| 101 |
alias("application/x-srt", "text/x-srt") |
| 102 |
vtt = newMIME("text/vtt", ".vtt", magic.Vtt) |
| 103 |
lua = newMIME("text/x-lua", ".lua", magic.Lua) |
| 104 |
perl = newMIME("text/x-perl", ".pl", magic.Perl) |
| 105 |
python = newMIME("text/x-python", ".py", magic.Python). |
| 106 |
alias("text/x-script.python", "application/x-python") |
| 107 |
ruby = newMIME("text/x-ruby", ".rb", magic.Ruby). |
| 108 |
alias("application/x-ruby") |
| 109 |
shell = newMIME("text/x-shellscript", ".sh", magic.Shell). |
| 110 |
alias("text/x-sh", "application/x-shellscript", "application/x-sh") |
| 111 |
tcl = newMIME("text/x-tcl", ".tcl", magic.Tcl). |
| 112 |
alias("application/x-tcl") |
| 113 |
vCard = newMIME("text/vcard", ".vcf", magic.VCard) |
| 114 |
iCalendar = newMIME("text/calendar", ".ics", magic.ICalendar) |
| 115 |
svg = newMIME("image/svg+xml", ".svg", magic.Svg) |
| 116 |
rss = newMIME("application/rss+xml", ".rss", magic.Rss). |
| 117 |
alias("text/rss") |
| 118 |
owl2 = newMIME("application/owl+xml", ".owl", magic.Owl2) |
| 119 |
atom = newMIME("application/atom+xml", ".atom", magic.Atom) |
| 120 |
x3d = newMIME("model/x3d+xml", ".x3d", magic.X3d) |
| 121 |
kml = newMIME("application/vnd.google-earth.kml+xml", ".kml", magic.Kml) |
| 122 |
kmz = newMIME("application/vnd.google-earth.kmz", ".kmz", magic.KMZ) |
| 123 |
xliff = newMIME("application/x-xliff+xml", ".xlf", magic.Xliff) |
| 124 |
collada = newMIME("model/vnd.collada+xml", ".dae", magic.Collada) |
| 125 |
gml = newMIME("application/gml+xml", ".gml", magic.Gml) |
| 126 |
gpx = newMIME("application/gpx+xml", ".gpx", magic.Gpx) |
| 127 |
tcx = newMIME("application/vnd.garmin.tcx+xml", ".tcx", magic.Tcx) |
| 128 |
amf = newMIME("application/x-amf", ".amf", magic.Amf) |
| 129 |
threemf = newMIME("application/vnd.ms-package.3dmanufacturing-3dmodel+xml", ".3mf", magic.Threemf) |
| 130 |
png = newMIME("image/png", ".png", magic.Png, apng) |
| 131 |
apng = newMIME("image/vnd.mozilla.apng", ".png", magic.Apng) |
| 132 |
jpg = newMIME("image/jpeg", ".jpg", magic.Jpg) |
| 133 |
jxl = newMIME("image/jxl", ".jxl", magic.Jxl) |
| 134 |
jp2 = newMIME("image/jp2", ".jp2", magic.Jp2) |
| 135 |
jpx = newMIME("image/jpx", ".jpf", magic.Jpx) |
| 136 |
jpm = newMIME("image/jpm", ".jpm", magic.Jpm). |
| 137 |
alias("video/jpm") |
| 138 |
jxs = newMIME("image/jxs", ".jxs", magic.Jxs) |
| 139 |
xpm = newMIME("image/x-xpixmap", ".xpm", magic.Xpm) |
| 140 |
bpg = newMIME("image/bpg", ".bpg", magic.Bpg) |
| 141 |
gif = newMIME("image/gif", ".gif", magic.Gif) |
| 142 |
webp = newMIME("image/webp", ".webp", magic.Webp) |
| 143 |
tiff = newMIME("image/tiff", ".tiff", magic.Tiff) |
| 144 |
bmp = newMIME("image/bmp", ".bmp", magic.Bmp). |
| 145 |
alias("image/x-bmp", "image/x-ms-bmp") |
| 146 |
|
| 147 |
|
| 148 |
lotus = newMIME("application/vnd.lotus-1-2-3", ".123", magic.Lotus123) |
| 149 |
ico = newMIME("image/x-icon", ".ico", magic.Ico) |
| 150 |
icns = newMIME("image/x-icns", ".icns", magic.Icns) |
| 151 |
psd = newMIME("image/vnd.adobe.photoshop", ".psd", magic.Psd). |
| 152 |
alias("image/x-psd", "application/photoshop") |
| 153 |
heic = newMIME("image/heic", ".heic", magic.Heic) |
| 154 |
heicSeq = newMIME("image/heic-sequence", ".heic", magic.HeicSequence) |
| 155 |
heif = newMIME("image/heif", ".heif", magic.Heif) |
| 156 |
heifSeq = newMIME("image/heif-sequence", ".heif", magic.HeifSequence) |
| 157 |
hdr = newMIME("image/vnd.radiance", ".hdr", magic.Hdr) |
| 158 |
avif = newMIME("image/avif", ".avif", magic.AVIF) |
| 159 |
mp3 = newMIME("audio/mpeg", ".mp3", magic.Mp3). |
| 160 |
alias("audio/x-mpeg", "audio/mp3") |
| 161 |
flac = newMIME("audio/flac", ".flac", magic.Flac) |
| 162 |
midi = newMIME("audio/midi", ".midi", magic.Midi). |
| 163 |
alias("audio/mid", "audio/sp-midi", "audio/x-mid", "audio/x-midi") |
| 164 |
ape = newMIME("audio/ape", ".ape", magic.Ape) |
| 165 |
musePack = newMIME("audio/musepack", ".mpc", magic.MusePack) |
| 166 |
wav = newMIME("audio/wav", ".wav", magic.Wav). |
| 167 |
alias("audio/x-wav", "audio/vnd.wave", "audio/wave") |
| 168 |
aiff = newMIME("audio/aiff", ".aiff", magic.Aiff).alias("audio/x-aiff") |
| 169 |
au = newMIME("audio/basic", ".au", magic.Au) |
| 170 |
amr = newMIME("audio/amr", ".amr", magic.Amr). |
| 171 |
alias("audio/amr-nb") |
| 172 |
aac = newMIME("audio/aac", ".aac", magic.AAC) |
| 173 |
voc = newMIME("audio/x-unknown", ".voc", magic.Voc) |
| 174 |
aMp4 = newMIME("audio/mp4", ".mp4", magic.AMp4). |
| 175 |
alias("audio/x-mp4a") |
| 176 |
m4a = newMIME("audio/x-m4a", ".m4a", magic.M4a) |
| 177 |
m3u = newMIME("application/vnd.apple.mpegurl", ".m3u", magic.M3U). |
| 178 |
alias("audio/mpegurl", "application/x-mpegurl") |
| 179 |
m4v = newMIME("video/x-m4v", ".m4v", magic.M4v) |
| 180 |
mj2 = newMIME("video/mj2", ".mj2", magic.Mj2) |
| 181 |
dvb = newMIME("video/vnd.dvb.file", ".dvb", magic.Dvb) |
| 182 |
mp4 = newMIME("video/mp4", ".mp4", magic.Mp4, avif, threeGP, threeG2, aMp4, mqv, m4a, m4v, heic, heicSeq, heif, heifSeq, mj2, dvb) |
| 183 |
webM = newMIME("video/webm", ".webm", magic.WebM). |
| 184 |
alias("audio/webm") |
| 185 |
mpeg = newMIME("video/mpeg", ".mpeg", magic.Mpeg) |
| 186 |
quickTime = newMIME("video/quicktime", ".mov", magic.QuickTime) |
| 187 |
mqv = newMIME("video/quicktime", ".mqv", magic.Mqv) |
| 188 |
threeGP = newMIME("video/3gpp", ".3gp", magic.ThreeGP). |
| 189 |
alias("video/3gp", "audio/3gpp") |
| 190 |
threeG2 = newMIME("video/3gpp2", ".3g2", magic.ThreeG2). |
| 191 |
alias("video/3g2", "audio/3gpp2") |
| 192 |
avi = newMIME("video/x-msvideo", ".avi", magic.Avi). |
| 193 |
alias("video/avi", "video/msvideo") |
| 194 |
flv = newMIME("video/x-flv", ".flv", magic.Flv) |
| 195 |
mkv = newMIME("video/x-matroska", ".mkv", magic.Mkv) |
| 196 |
asf = newMIME("video/x-ms-asf", ".asf", magic.Asf). |
| 197 |
alias("video/asf", "video/x-ms-wmv") |
| 198 |
rmvb = newMIME("application/vnd.rn-realmedia-vbr", ".rmvb", magic.Rmvb) |
| 199 |
class = newMIME("application/x-java-applet", ".class", magic.Class) |
| 200 |
swf = newMIME("application/x-shockwave-flash", ".swf", magic.SWF) |
| 201 |
crx = newMIME("application/x-chrome-extension", ".crx", magic.CRX) |
| 202 |
ttf = newMIME("font/ttf", ".ttf", magic.Ttf). |
| 203 |
alias("font/sfnt", "application/x-font-ttf", "application/font-sfnt") |
| 204 |
woff = newMIME("font/woff", ".woff", magic.Woff) |
| 205 |
woff2 = newMIME("font/woff2", ".woff2", magic.Woff2) |
| 206 |
otf = newMIME("font/otf", ".otf", magic.Otf) |
| 207 |
ttc = newMIME("font/collection", ".ttc", magic.Ttc) |
| 208 |
eot = newMIME("application/vnd.ms-fontobject", ".eot", magic.Eot) |
| 209 |
wasm = newMIME("application/wasm", ".wasm", magic.Wasm) |
| 210 |
shp = newMIME("application/vnd.shp", ".shp", magic.Shp) |
| 211 |
shx = newMIME("application/vnd.shx", ".shx", magic.Shx, shp) |
| 212 |
dbf = newMIME("application/x-dbf", ".dbf", magic.Dbf) |
| 213 |
exe = newMIME("application/vnd.microsoft.portable-executable", ".exe", magic.Exe) |
| 214 |
elf = newMIME("application/x-elf", "", magic.Elf, elfObj, elfExe, elfLib, elfDump) |
| 215 |
elfObj = newMIME("application/x-object", "", magic.ElfObj) |
| 216 |
elfExe = newMIME("application/x-executable", "", magic.ElfExe) |
| 217 |
elfLib = newMIME("application/x-sharedlib", ".so", magic.ElfLib) |
| 218 |
elfDump = newMIME("application/x-coredump", "", magic.ElfDump) |
| 219 |
ar = newMIME("application/x-archive", ".a", magic.Ar, deb). |
| 220 |
alias("application/x-unix-archive") |
| 221 |
deb = newMIME("application/vnd.debian.binary-package", ".deb", magic.Deb) |
| 222 |
rpm = newMIME("application/x-rpm", ".rpm", magic.RPM) |
| 223 |
dcm = newMIME("application/dicom", ".dcm", magic.Dcm) |
| 224 |
odt = newMIME("application/vnd.oasis.opendocument.text", ".odt", magic.Odt, ott). |
| 225 |
alias("application/x-vnd.oasis.opendocument.text") |
| 226 |
ott = newMIME("application/vnd.oasis.opendocument.text-template", ".ott", magic.Ott). |
| 227 |
alias("application/x-vnd.oasis.opendocument.text-template") |
| 228 |
ods = newMIME("application/vnd.oasis.opendocument.spreadsheet", ".ods", magic.Ods, ots). |
| 229 |
alias("application/x-vnd.oasis.opendocument.spreadsheet") |
| 230 |
ots = newMIME("application/vnd.oasis.opendocument.spreadsheet-template", ".ots", magic.Ots). |
| 231 |
alias("application/x-vnd.oasis.opendocument.spreadsheet-template") |
| 232 |
odp = newMIME("application/vnd.oasis.opendocument.presentation", ".odp", magic.Odp, otp). |
| 233 |
alias("application/x-vnd.oasis.opendocument.presentation") |
| 234 |
otp = newMIME("application/vnd.oasis.opendocument.presentation-template", ".otp", magic.Otp). |
| 235 |
alias("application/x-vnd.oasis.opendocument.presentation-template") |
| 236 |
odg = newMIME("application/vnd.oasis.opendocument.graphics", ".odg", magic.Odg, otg). |
| 237 |
alias("application/x-vnd.oasis.opendocument.graphics") |
| 238 |
otg = newMIME("application/vnd.oasis.opendocument.graphics-template", ".otg", magic.Otg). |
| 239 |
alias("application/x-vnd.oasis.opendocument.graphics-template") |
| 240 |
odf = newMIME("application/vnd.oasis.opendocument.formula", ".odf", magic.Odf). |
| 241 |
alias("application/x-vnd.oasis.opendocument.formula") |
| 242 |
odc = newMIME("application/vnd.oasis.opendocument.chart", ".odc", magic.Odc). |
| 243 |
alias("application/x-vnd.oasis.opendocument.chart") |
| 244 |
sxc = newMIME("application/vnd.sun.xml.calc", ".sxc", magic.Sxc) |
| 245 |
rar = newMIME("application/x-rar-compressed", ".rar", magic.RAR). |
| 246 |
alias("application/x-rar") |
| 247 |
djvu = newMIME("image/vnd.djvu", ".djvu", magic.DjVu) |
| 248 |
mobi = newMIME("application/x-mobipocket-ebook", ".mobi", magic.Mobi) |
| 249 |
lit = newMIME("application/x-ms-reader", ".lit", magic.Lit) |
| 250 |
sqlite3 = newMIME("application/vnd.sqlite3", ".sqlite", magic.Sqlite). |
| 251 |
alias("application/x-sqlite3") |
| 252 |
dwg = newMIME("image/vnd.dwg", ".dwg", magic.Dwg). |
| 253 |
alias("image/x-dwg", "application/acad", "application/x-acad", |
| 254 |
"application/autocad_dwg", "application/dwg", "application/x-dwg", |
| 255 |
"application/x-autocad", "drawing/dwg") |
| 256 |
warc = newMIME("application/warc", ".warc", magic.Warc) |
| 257 |
nes = newMIME("application/vnd.nintendo.snes.rom", ".nes", magic.Nes) |
| 258 |
lnk = newMIME("application/x-ms-shortcut", ".lnk", magic.Lnk) |
| 259 |
macho = newMIME("application/x-mach-binary", ".macho", magic.MachO) |
| 260 |
qcp = newMIME("audio/qcelp", ".qcp", magic.Qcp) |
| 261 |
mrc = newMIME("application/marc", ".mrc", magic.Marc) |
| 262 |
mdb = newMIME("application/x-msaccess", ".mdb", magic.MsAccessMdb) |
| 263 |
accdb = newMIME("application/x-msaccess", ".accdb", magic.MsAccessAce) |
| 264 |
zstd = newMIME("application/zstd", ".zst", magic.Zstd) |
| 265 |
cab = newMIME("application/vnd.ms-cab-compressed", ".cab", magic.Cab) |
| 266 |
cabIS = newMIME("application/x-installshield", ".cab", magic.InstallShieldCab) |
| 267 |
lzip = newMIME("application/lzip", ".lz", magic.Lzip).alias("application/x-lzip") |
| 268 |
torrent = newMIME("application/x-bittorrent", ".torrent", magic.Torrent) |
| 269 |
cpio = newMIME("application/x-cpio", ".cpio", magic.Cpio) |
| 270 |
tzif = newMIME("application/tzif", "", magic.TzIf) |
| 271 |
p7s = newMIME("application/pkcs7-signature", ".p7s", magic.P7s) |
| 272 |
xcf = newMIME("image/x-xcf", ".xcf", magic.Xcf) |
| 273 |
pat = newMIME("image/x-gimp-pat", ".pat", magic.Pat) |
| 274 |
gbr = newMIME("image/x-gimp-gbr", ".gbr", magic.Gbr) |
| 275 |
xfdf = newMIME("application/vnd.adobe.xfdf", ".xfdf", magic.Xfdf) |
| 276 |
glb = newMIME("model/gltf-binary", ".glb", magic.GLB) |
| 277 |
gltf = newMIME("model/gltf+json", ".gltf", magic.GLTF) |
| 278 |
jxr = newMIME("image/jxr", ".jxr", magic.Jxr).alias("image/vnd.ms-photo") |
| 279 |
parquet = newMIME("application/vnd.apache.parquet", ".parquet", magic.Par1). |
| 280 |
alias("application/x-parquet") |
| 281 |
netpbm = newMIME("image/x-portable-bitmap", ".pbm", magic.NetPBM) |
| 282 |
netpgm = newMIME("image/x-portable-graymap", ".pgm", magic.NetPGM) |
| 283 |
netppm = newMIME("image/x-portable-pixmap", ".ppm", magic.NetPPM) |
| 284 |
netpam = newMIME("image/x-portable-arbitrarymap", ".pam", magic.NetPAM) |
| 285 |
cbor = newMIME("application/cbor", ".cbor", magic.CBOR) |
| 286 |
oneNote = newMIME("application/onenote", ".one", magic.One) |
| 287 |
chm = newMIME("application/vnd.ms-htmlhelp", ".chm", magic.CHM) |
| 288 |
wpd = newMIME("application/vnd.wordperfect", ".wpd", magic.WPD) |
| 289 |
dxf = newMIME("image/vnd.dxf", ".dxf", magic.DXF) |
| 290 |
rfc822 = newMIME("message/rfc822", ".eml", magic.RFC822) |
| 291 |
grib = newMIME("application/grib", ".grb", magic.GRIB) |
| 292 |
zlib = newMIME("application/zlib", "", magic.Zlib) |
| 293 |
inf = newMIME("application/x-os2-inf", ".inf", magic.Inf) |
| 294 |
hlp = newMIME("application/x-os2-hlp", ".hlp", magic.Hlp) |
| 295 |
fm = newMIME("application/vnd.framemaker", ".fm", magic.FrameMaker) |
| 296 |
bufr = newMIME("application/bufr", ".bufr", magic.BUFR) |
| 297 |
) |