1pub fn extension_to_mime(extension: Option<&str>) -> &'static str {
2 match extension {
5 Some("323") => "text/h323; charset=utf8",
6 Some("3g2") => "video/3gpp2",
7 Some("3gp") => "video/3gpp",
8 Some("3gp2") => "video/3gpp2",
9 Some("3gpp") => "video/3gpp",
10 Some("7z") => "application/x-7z-compressed",
11 Some("aa") => "audio/audible",
12 Some("aac") => "audio/aac",
13 Some("aaf") => "application/octet-stream",
14 Some("aax") => "audio/vnd.audible.aax",
15 Some("ac3") => "audio/ac3",
16 Some("aca") => "application/octet-stream",
17 Some("accda") => "application/msaccess.addin",
18 Some("accdb") => "application/msaccess",
19 Some("accdc") => "application/msaccess.cab",
20 Some("accde") => "application/msaccess",
21 Some("accdr") => "application/msaccess.runtime",
22 Some("acct") => "application/msaccess",
23 Some("accdw") => "application/msaccess.webapplication",
24 Some("accft") => "application/msaccess.ftemplate",
25 Some("acx") => "application/internet-property-stream",
26 Some("addin") => "application/xml",
27 Some("ade") => "application/msaccess",
28 Some("adobebridge") => "application/x-bridge-url",
29 Some("adp") => "application/msaccess",
30 Some("adt") => "audio/vnd.dlna.adts",
31 Some("adts") => "audio/aac",
32 Some("afm") => "application/octet-stream",
33 Some("ai") => "application/postscript",
34 Some("aif") => "audio/x-aiff",
35 Some("aifc") => "audio/aiff",
36 Some("aiff") => "audio/aiff",
37 Some("air") => "application/vnd.adobe.air-application-installer-package+zip",
38 Some("amc") => "application/x-mpeg",
39 Some("application") => "application/x-ms-application",
40 Some("art") => "image/x-jg",
41 Some("asa") => "application/xml",
42 Some("asax") => "application/xml",
43 Some("ascx") => "application/xml",
44 Some("asd") => "application/octet-stream",
45 Some("asf") => "video/x-ms-asf",
46 Some("ashx") => "application/xml",
47 Some("asi") => "application/octet-stream",
48 Some("asm") => "text/plain; charset=utf8",
49 Some("asmx") => "application/xml",
50 Some("aspx") => "application/xml",
51 Some("asr") => "video/x-ms-asf",
52 Some("asx") => "video/x-ms-asf",
53 Some("atom") => "application/atom+xml",
54 Some("au") => "audio/basic",
55 Some("avi") => "video/x-msvideo",
56 Some("axs") => "application/olescript",
57 Some("bas") => "text/plain; charset=utf8",
58 Some("bcpio") => "application/x-bcpio",
59 Some("bin") => "application/octet-stream",
60 Some("bmp") => "image/bmp",
61 Some("c") => "text/plain; charset=utf8",
62 Some("cab") => "application/octet-stream",
63 Some("caf") => "audio/x-caf",
64 Some("calx") => "application/vnd.ms-office.calx",
65 Some("cat") => "application/vnd.ms-pki.seccat",
66 Some("cc") => "text/plain; charset=utf8",
67 Some("cd") => "text/plain; charset=utf8",
68 Some("cdda") => "audio/aiff",
69 Some("cdf") => "application/x-cdf",
70 Some("cer") => "application/x-x509-ca-cert",
71 Some("chm") => "application/octet-stream",
72 Some("class") => "application/x-java-applet",
73 Some("clp") => "application/x-msclip",
74 Some("cmx") => "image/x-cmx",
75 Some("cnf") => "text/plain; charset=utf8",
76 Some("cod") => "image/cis-cod",
77 Some("config") => "application/xml",
78 Some("contact") => "text/x-ms-contact; charset=utf8",
79 Some("coverage") => "application/xml",
80 Some("cpio") => "application/x-cpio",
81 Some("cpp") => "text/plain; charset=utf8",
82 Some("crd") => "application/x-mscardfile",
83 Some("crl") => "application/pkix-crl",
84 Some("crt") => "application/x-x509-ca-cert",
85 Some("cs") => "text/plain; charset=utf8",
86 Some("csdproj") => "text/plain; charset=utf8",
87 Some("csh") => "application/x-csh",
88 Some("csproj") => "text/plain; charset=utf8",
89 Some("css") => "text/css; charset=utf8",
90 Some("csv") => "text/csv; charset=utf8",
91 Some("cur") => "application/octet-stream",
92 Some("cxx") => "text/plain; charset=utf8",
93 Some("dat") => "application/octet-stream",
94 Some("datasource") => "application/xml",
95 Some("dbproj") => "text/plain; charset=utf8",
96 Some("dcr") => "application/x-director",
97 Some("def") => "text/plain; charset=utf8",
98 Some("deploy") => "application/octet-stream",
99 Some("der") => "application/x-x509-ca-cert",
100 Some("dgml") => "application/xml",
101 Some("dib") => "image/bmp",
102 Some("dif") => "video/x-dv",
103 Some("dir") => "application/x-director",
104 Some("disco") => "application/xml",
105 Some("dll") => "application/x-msdownload",
106 Some("dll.config") => "application/xml",
107 Some("dlm") => "text/dlm; charset=utf8",
108 Some("doc") => "application/msword",
109 Some("docm") => "application/vnd.ms-word.document.macroEnabled.12",
110 Some("docx") => "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
111 Some("dot") => "application/msword",
112 Some("dotm") => "application/vnd.ms-word.template.macroEnabled.12",
113 Some("dotx") => "application/vnd.openxmlformats-officedocument.wordprocessingml.template",
114 Some("dsp") => "application/octet-stream",
115 Some("dsw") => "text/plain; charset=utf8",
116 Some("dtd") => "application/xml",
117 Some("dtsConfig") => "application/xml",
118 Some("dv") => "video/x-dv",
119 Some("dvi") => "application/x-dvi",
120 Some("dwf") => "drawing/x-dwf",
121 Some("dwp") => "application/octet-stream",
122 Some("dxr") => "application/x-director",
123 Some("eml") => "message/rfc822",
124 Some("emz") => "application/octet-stream",
125 Some("eot") => "application/vnd.ms-fontobject",
126 Some("eps") => "application/postscript",
127 Some("etl") => "application/etl",
128 Some("etx") => "text/x-setext; charset=utf8",
129 Some("evy") => "application/envoy",
130 Some("exe") => "application/octet-stream",
131 Some("exe.config") => "application/xml",
132 Some("fdf") => "application/vnd.fdf",
133 Some("fif") => "application/fractals",
134 Some("filters") => "Application/xml",
135 Some("fla") => "application/octet-stream",
136 Some("flr") => "x-world/x-vrml",
137 Some("flv") => "video/x-flv",
138 Some("fsscript") => "application/fsharp-script",
139 Some("fsx") => "application/fsharp-script",
140 Some("generictest") => "application/xml",
141 Some("gif") => "image/gif",
142 Some("group") => "text/x-ms-group; charset=utf8",
143 Some("gsm") => "audio/x-gsm",
144 Some("gtar") => "application/x-gtar",
145 Some("gz") => "application/x-gzip",
146 Some("h") => "text/plain; charset=utf8",
147 Some("hdf") => "application/x-hdf",
148 Some("hdml") => "text/x-hdml; charset=utf8",
149 Some("hhc") => "application/x-oleobject",
150 Some("hhk") => "application/octet-stream",
151 Some("hhp") => "application/octet-stream",
152 Some("hlp") => "application/winhlp",
153 Some("hpp") => "text/plain; charset=utf8",
154 Some("hqx") => "application/mac-binhex40",
155 Some("hta") => "application/hta",
156 Some("htc") => "text/x-component; charset=utf8",
157 Some("htm") => "text/html; charset=utf8",
158 Some("html") => "text/html; charset=utf8",
159 Some("htt") => "text/webviewhtml; charset=utf8",
160 Some("hxa") => "application/xml",
161 Some("hxc") => "application/xml",
162 Some("hxd") => "application/octet-stream",
163 Some("hxe") => "application/xml",
164 Some("hxf") => "application/xml",
165 Some("hxh") => "application/octet-stream",
166 Some("hxi") => "application/octet-stream",
167 Some("hxk") => "application/xml",
168 Some("hxq") => "application/octet-stream",
169 Some("hxr") => "application/octet-stream",
170 Some("hxs") => "application/octet-stream",
171 Some("hxt") => "text/html; charset=utf8",
172 Some("hxv") => "application/xml",
173 Some("hxw") => "application/octet-stream",
174 Some("hxx") => "text/plain; charset=utf8",
175 Some("i") => "text/plain; charset=utf8",
176 Some("ico") => "image/x-icon",
177 Some("ics") => "application/octet-stream",
178 Some("idl") => "text/plain; charset=utf8",
179 Some("ief") => "image/ief",
180 Some("iii") => "application/x-iphone",
181 Some("inc") => "text/plain; charset=utf8",
182 Some("inf") => "application/octet-stream",
183 Some("inl") => "text/plain; charset=utf8",
184 Some("ins") => "application/x-internet-signup",
185 Some("ipa") => "application/x-itunes-ipa",
186 Some("ipg") => "application/x-itunes-ipg",
187 Some("ipproj") => "text/plain; charset=utf8",
188 Some("ipsw") => "application/x-itunes-ipsw",
189 Some("iqy") => "text/x-ms-iqy; charset=utf8",
190 Some("isp") => "application/x-internet-signup",
191 Some("ite") => "application/x-itunes-ite",
192 Some("itlp") => "application/x-itunes-itlp",
193 Some("itms") => "application/x-itunes-itms",
194 Some("itpc") => "application/x-itunes-itpc",
195 Some("ivf") => "video/x-ivf",
196 Some("jar") => "application/java-archive",
197 Some("java") => "application/octet-stream",
198 Some("jck") => "application/liquidmotion",
199 Some("jcz") => "application/liquidmotion",
200 Some("jfif") => "image/pjpeg",
201 Some("jnlp") => "application/x-java-jnlp-file",
202 Some("jpb") => "application/octet-stream",
203 Some("jpe") => "image/jpeg",
204 Some("jpeg") => "image/jpeg",
205 Some("jpg") => "image/jpeg",
206 Some("js") => "application/javascript",
207 Some("json") => "application/json",
208 Some("jsx") => "text/jscript; charset=utf8",
209 Some("jsxbin") => "text/plain; charset=utf8",
210 Some("latex") => "application/x-latex",
211 Some("library-ms") => "application/windows-library+xml",
212 Some("lit") => "application/x-ms-reader",
213 Some("loadtest") => "application/xml",
214 Some("lpk") => "application/octet-stream",
215 Some("lsf") => "video/x-la-asf",
216 Some("lst") => "text/plain; charset=utf8",
217 Some("lsx") => "video/x-la-asf",
218 Some("lzh") => "application/octet-stream",
219 Some("m13") => "application/x-msmediaview",
220 Some("m14") => "application/x-msmediaview",
221 Some("m1v") => "video/mpeg",
222 Some("m2t") => "video/vnd.dlna.mpeg-tts",
223 Some("m2ts") => "video/vnd.dlna.mpeg-tts",
224 Some("m2v") => "video/mpeg",
225 Some("m3u") => "audio/x-mpegurl",
226 Some("m3u8") => "audio/x-mpegurl",
227 Some("m4a") => "audio/m4a",
228 Some("m4b") => "audio/m4b",
229 Some("m4p") => "audio/m4p",
230 Some("m4r") => "audio/x-m4r",
231 Some("m4v") => "video/x-m4v",
232 Some("mac") => "image/x-macpaint",
233 Some("mak") => "text/plain; charset=utf8",
234 Some("man") => "application/x-troff-man",
235 Some("manifest") => "application/x-ms-manifest",
236 Some("map") => "text/plain; charset=utf8",
237 Some("master") => "application/xml",
238 Some("mda") => "application/msaccess",
239 Some("mdb") => "application/x-msaccess",
240 Some("mde") => "application/msaccess",
241 Some("mdp") => "application/octet-stream",
242 Some("me") => "application/x-troff-me",
243 Some("mfp") => "application/x-shockwave-flash",
244 Some("mht") => "message/rfc822",
245 Some("mhtml") => "message/rfc822",
246 Some("mid") => "audio/mid",
247 Some("midi") => "audio/mid",
248 Some("mix") => "application/octet-stream",
249 Some("mjs") => "application/javascript",
250 Some("mk") => "text/plain; charset=utf8",
251 Some("mmf") => "application/x-smaf",
252 Some("mno") => "application/xml",
253 Some("mny") => "application/x-msmoney",
254 Some("mod") => "video/mpeg",
255 Some("mov") => "video/quicktime",
256 Some("movie") => "video/x-sgi-movie",
257 Some("mp2") => "video/mpeg",
258 Some("mp2v") => "video/mpeg",
259 Some("mp3") => "audio/mpeg",
260 Some("mp4") => "video/mp4",
261 Some("mp4v") => "video/mp4",
262 Some("mpa") => "video/mpeg",
263 Some("mpe") => "video/mpeg",
264 Some("mpeg") => "video/mpeg",
265 Some("mpf") => "application/vnd.ms-mediapackage",
266 Some("mpg") => "video/mpeg",
267 Some("mpp") => "application/vnd.ms-project",
268 Some("mpv2") => "video/mpeg",
269 Some("mqv") => "video/quicktime",
270 Some("ms") => "application/x-troff-ms",
271 Some("msi") => "application/octet-stream",
272 Some("mso") => "application/octet-stream",
273 Some("mts") => "video/vnd.dlna.mpeg-tts",
274 Some("mtx") => "application/xml",
275 Some("mvb") => "application/x-msmediaview",
276 Some("mvc") => "application/x-miva-compiled",
277 Some("mxp") => "application/x-mmxp",
278 Some("nc") => "application/x-netcdf",
279 Some("nsc") => "video/x-ms-asf",
280 Some("nws") => "message/rfc822",
281 Some("ocx") => "application/octet-stream",
282 Some("oda") => "application/oda",
283 Some("odc") => "text/x-ms-odc; charset=utf8",
284 Some("odh") => "text/plain; charset=utf8",
285 Some("odl") => "text/plain; charset=utf8",
286 Some("odp") => "application/vnd.oasis.opendocument.presentation",
287 Some("ods") => "application/oleobject",
288 Some("odt") => "application/vnd.oasis.opendocument.text",
289 Some("ogg") => "application/ogg",
290 Some("one") => "application/onenote",
291 Some("onea") => "application/onenote",
292 Some("onepkg") => "application/onenote",
293 Some("onetmp") => "application/onenote",
294 Some("onetoc") => "application/onenote",
295 Some("onetoc2") => "application/onenote",
296 Some("orderedtest") => "application/xml",
297 Some("osdx") => "application/opensearchdescription+xml",
298 Some("otf") => "application/x-font-opentype",
299 Some("p10") => "application/pkcs10",
300 Some("p12") => "application/x-pkcs12",
301 Some("p7b") => "application/x-pkcs7-certificates",
302 Some("p7c") => "application/pkcs7-mime",
303 Some("p7m") => "application/pkcs7-mime",
304 Some("p7r") => "application/x-pkcs7-certreqresp",
305 Some("p7s") => "application/pkcs7-signature",
306 Some("pbm") => "image/x-portable-bitmap",
307 Some("pcast") => "application/x-podcast",
308 Some("pct") => "image/pict",
309 Some("pcx") => "application/octet-stream",
310 Some("pcz") => "application/octet-stream",
311 Some("pdf") => "application/pdf",
312 Some("pfb") => "application/octet-stream",
313 Some("pfm") => "application/octet-stream",
314 Some("pfx") => "application/x-pkcs12",
315 Some("pgm") => "image/x-portable-graymap",
316 Some("pic") => "image/pict",
317 Some("pict") => "image/pict",
318 Some("pkgdef") => "text/plain; charset=utf8",
319 Some("pkgundef") => "text/plain; charset=utf8",
320 Some("pko") => "application/vnd.ms-pki.pko",
321 Some("pls") => "audio/scpls",
322 Some("pma") => "application/x-perfmon",
323 Some("pmc") => "application/x-perfmon",
324 Some("pml") => "application/x-perfmon",
325 Some("pmr") => "application/x-perfmon",
326 Some("pmw") => "application/x-perfmon",
327 Some("png") => "image/png",
328 Some("pnm") => "image/x-portable-anymap",
329 Some("pnt") => "image/x-macpaint",
330 Some("pntg") => "image/x-macpaint",
331 Some("pnz") => "image/png",
332 Some("pot") => "application/vnd.ms-powerpoint",
333 Some("potm") => "application/vnd.ms-powerpoint.template.macroEnabled.12",
334 Some("potx") => "application/vnd.openxmlformats-officedocument.presentationml.template",
335 Some("ppa") => "application/vnd.ms-powerpoint",
336 Some("ppam") => "application/vnd.ms-powerpoint.addin.macroEnabled.12",
337 Some("ppm") => "image/x-portable-pixmap",
338 Some("pps") => "application/vnd.ms-powerpoint",
339 Some("ppsm") => "application/vnd.ms-powerpoint.slideshow.macroEnabled.12",
340 Some("ppsx") => "application/vnd.openxmlformats-officedocument.presentationml.slideshow",
341 Some("ppt") => "application/vnd.ms-powerpoint",
342 Some("pptm") => "application/vnd.ms-powerpoint.presentation.macroEnabled.12",
343 Some("pptx") => "application/vnd.openxmlformats-officedocument.presentationml.presentation",
344 Some("prf") => "application/pics-rules",
345 Some("prm") => "application/octet-stream",
346 Some("prx") => "application/octet-stream",
347 Some("ps") => "application/postscript",
348 Some("psc1") => "application/PowerShell",
349 Some("psd") => "application/octet-stream",
350 Some("psess") => "application/xml",
351 Some("psm") => "application/octet-stream",
352 Some("psp") => "application/octet-stream",
353 Some("pub") => "application/x-mspublisher",
354 Some("pwz") => "application/vnd.ms-powerpoint",
355 Some("qht") => "text/x-html-insertion; charset=utf8",
356 Some("qhtm") => "text/x-html-insertion; charset=utf8",
357 Some("qt") => "video/quicktime",
358 Some("qti") => "image/x-quicktime",
359 Some("qtif") => "image/x-quicktime",
360 Some("qtl") => "application/x-quicktimeplayer",
361 Some("qxd") => "application/octet-stream",
362 Some("ra") => "audio/x-pn-realaudio",
363 Some("ram") => "audio/x-pn-realaudio",
364 Some("rar") => "application/octet-stream",
365 Some("ras") => "image/x-cmu-raster",
366 Some("rat") => "application/rat-file",
367 Some("rc") => "text/plain; charset=utf8",
368 Some("rc2") => "text/plain; charset=utf8",
369 Some("rct") => "text/plain; charset=utf8",
370 Some("rdlc") => "application/xml",
371 Some("resx") => "application/xml",
372 Some("rf") => "image/vnd.rn-realflash",
373 Some("rgb") => "image/x-rgb",
374 Some("rgs") => "text/plain; charset=utf8",
375 Some("rm") => "application/vnd.rn-realmedia",
376 Some("rmi") => "audio/mid",
377 Some("rmp") => "application/vnd.rn-rn_music_package",
378 Some("roff") => "application/x-troff",
379 Some("rpm") => "audio/x-pn-realaudio-plugin",
380 Some("rqy") => "text/x-ms-rqy; charset=utf8",
381 Some("rtf") => "application/rtf",
382 Some("rtx") => "text/richtext; charset=utf8",
383 Some("ruleset") => "application/xml",
384 Some("s") => "text/plain; charset=utf8",
385 Some("safariextz") => "application/x-safari-safariextz",
386 Some("scd") => "application/x-msschedule",
387 Some("sct") => "text/scriptlet; charset=utf8",
388 Some("sd2") => "audio/x-sd2",
389 Some("sdp") => "application/sdp",
390 Some("sea") => "application/octet-stream",
391 Some("searchConnector-ms") => "application/windows-search-connector+xml",
392 Some("setpay") => "application/set-payment-initiation",
393 Some("setreg") => "application/set-registration-initiation",
394 Some("settings") => "application/xml",
395 Some("sfnt") => "application/font-sfnt",
396 Some("sgimb") => "application/x-sgimb",
397 Some("sgml") => "text/sgml; charset=utf8",
398 Some("sh") => "application/x-sh",
399 Some("shar") => "application/x-shar",
400 Some("shtml") => "text/html; charset=utf8",
401 Some("sit") => "application/x-stuffit",
402 Some("sitemap") => "application/xml",
403 Some("skin") => "application/xml",
404 Some("sldm") => "application/vnd.ms-powerpoint.slide.macroEnabled.12",
405 Some("sldx") => "application/vnd.openxmlformats-officedocument.presentationml.slide",
406 Some("slk") => "application/vnd.ms-excel",
407 Some("sln") => "text/plain; charset=utf8",
408 Some("slupkg-ms") => "application/x-ms-license",
409 Some("smd") => "audio/x-smd",
410 Some("smi") => "application/octet-stream",
411 Some("smx") => "audio/x-smd",
412 Some("smz") => "audio/x-smd",
413 Some("snd") => "audio/basic",
414 Some("snippet") => "application/xml",
415 Some("snp") => "application/octet-stream",
416 Some("sol") => "text/plain; charset=utf8",
417 Some("sor") => "text/plain; charset=utf8",
418 Some("spc") => "application/x-pkcs7-certificates",
419 Some("spl") => "application/futuresplash",
420 Some("src") => "application/x-wais-source",
421 Some("srf") => "text/plain; charset=utf8",
422 Some("ssisdeploymentmanifest") => "application/xml",
423 Some("ssm") => "application/streamingmedia",
424 Some("sst") => "application/vnd.ms-pki.certstore",
425 Some("stl") => "application/vnd.ms-pki.stl",
426 Some("sv4cpio") => "application/x-sv4cpio",
427 Some("sv4crc") => "application/x-sv4crc",
428 Some("svc") => "application/xml",
429 Some("svg") => "image/svg+xml",
430 Some("swf") => "application/x-shockwave-flash",
431 Some("t") => "application/x-troff",
432 Some("tar") => "application/x-tar",
433 Some("tcl") => "application/x-tcl",
434 Some("testrunconfig") => "application/xml",
435 Some("testsettings") => "application/xml",
436 Some("tex") => "application/x-tex",
437 Some("texi") => "application/x-texinfo",
438 Some("texinfo") => "application/x-texinfo",
439 Some("tgz") => "application/x-compressed",
440 Some("thmx") => "application/vnd.ms-officetheme",
441 Some("thn") => "application/octet-stream",
442 Some("tif") => "image/tiff",
443 Some("tiff") => "image/tiff",
444 Some("tlh") => "text/plain; charset=utf8",
445 Some("tli") => "text/plain; charset=utf8",
446 Some("toc") => "application/octet-stream",
447 Some("tr") => "application/x-troff",
448 Some("trm") => "application/x-msterminal",
449 Some("trx") => "application/xml",
450 Some("ts") => "video/vnd.dlna.mpeg-tts",
451 Some("tsv") => "text/tab-separated-values; charset=utf8",
452 Some("ttf") => "application/x-font-ttf",
453 Some("tts") => "video/vnd.dlna.mpeg-tts",
454 Some("txt") => "text/plain; charset=utf8",
455 Some("u32") => "application/octet-stream",
456 Some("uls") => "text/iuls; charset=utf8",
457 Some("user") => "text/plain; charset=utf8",
458 Some("ustar") => "application/x-ustar",
459 Some("vb") => "text/plain; charset=utf8",
460 Some("vbdproj") => "text/plain; charset=utf8",
461 Some("vbk") => "video/mpeg",
462 Some("vbproj") => "text/plain; charset=utf8",
463 Some("vbs") => "text/vbscript; charset=utf8",
464 Some("vcf") => "text/x-vcard; charset=utf8",
465 Some("vcproj") => "Application/xml",
466 Some("vcs") => "text/plain; charset=utf8",
467 Some("vcxproj") => "Application/xml",
468 Some("vddproj") => "text/plain; charset=utf8",
469 Some("vdp") => "text/plain; charset=utf8",
470 Some("vdproj") => "text/plain; charset=utf8",
471 Some("vdx") => "application/vnd.ms-visio.viewer",
472 Some("vml") => "application/xml",
473 Some("vscontent") => "application/xml",
474 Some("vsct") => "application/xml",
475 Some("vsd") => "application/vnd.visio",
476 Some("vsi") => "application/ms-vsi",
477 Some("vsix") => "application/vsix",
478 Some("vsixlangpack") => "application/xml",
479 Some("vsixmanifest") => "application/xml",
480 Some("vsmdi") => "application/xml",
481 Some("vspscc") => "text/plain; charset=utf8",
482 Some("vss") => "application/vnd.visio",
483 Some("vsscc") => "text/plain; charset=utf8",
484 Some("vssettings") => "application/xml",
485 Some("vssscc") => "text/plain; charset=utf8",
486 Some("vst") => "application/vnd.visio",
487 Some("vstemplate") => "application/xml",
488 Some("vsto") => "application/x-ms-vsto",
489 Some("vsw") => "application/vnd.visio",
490 Some("vsx") => "application/vnd.visio",
491 Some("vtx") => "application/vnd.visio",
492 Some("wasm") => "application/wasm",
493 Some("wav") => "audio/wav",
494 Some("wave") => "audio/wav",
495 Some("wax") => "audio/x-ms-wax",
496 Some("wbk") => "application/msword",
497 Some("wbmp") => "image/vnd.wap.wbmp",
498 Some("wcm") => "application/vnd.ms-works",
499 Some("wdb") => "application/vnd.ms-works",
500 Some("wdp") => "image/vnd.ms-photo",
501 Some("webarchive") => "application/x-safari-webarchive",
502 Some("webtest") => "application/xml",
503 Some("wiq") => "application/xml",
504 Some("wiz") => "application/msword",
505 Some("wks") => "application/vnd.ms-works",
506 Some("wlmp") => "application/wlmoviemaker",
507 Some("wlpginstall") => "application/x-wlpg-detect",
508 Some("wlpginstall3") => "application/x-wlpg3-detect",
509 Some("wm") => "video/x-ms-wm",
510 Some("wma") => "audio/x-ms-wma",
511 Some("wmd") => "application/x-ms-wmd",
512 Some("wmf") => "application/x-msmetafile",
513 Some("wml") => "text/vnd.wap.wml; charset=utf8",
514 Some("wmlc") => "application/vnd.wap.wmlc",
515 Some("wmls") => "text/vnd.wap.wmlscript; charset=utf8",
516 Some("wmlsc") => "application/vnd.wap.wmlscriptc",
517 Some("wmp") => "video/x-ms-wmp",
518 Some("wmv") => "video/x-ms-wmv",
519 Some("wmx") => "video/x-ms-wmx",
520 Some("wmz") => "application/x-ms-wmz",
521 Some("woff") => "application/font-woff",
522 Some("woff2") => "application/font-woff2",
523 Some("wpl") => "application/vnd.ms-wpl",
524 Some("wps") => "application/vnd.ms-works",
525 Some("wri") => "application/x-mswrite",
526 Some("wrl") => "x-world/x-vrml",
527 Some("wrz") => "x-world/x-vrml",
528 Some("wsc") => "text/scriptlet; charset=utf8",
529 Some("wsdl") => "application/xml",
530 Some("wvx") => "video/x-ms-wvx",
531 Some("x") => "application/directx",
532 Some("xaf") => "x-world/x-vrml",
533 Some("xaml") => "application/xaml+xml",
534 Some("xap") => "application/x-silverlight-app",
535 Some("xbap") => "application/x-ms-xbap",
536 Some("xbm") => "image/x-xbitmap",
537 Some("xdr") => "text/plain; charset=utf8",
538 Some("xht") => "application/xhtml+xml",
539 Some("xhtml") => "application/xhtml+xml",
540 Some("xla") => "application/vnd.ms-excel",
541 Some("xlam") => "application/vnd.ms-excel.addin.macroEnabled.12",
542 Some("xlc") => "application/vnd.ms-excel",
543 Some("xld") => "application/vnd.ms-excel",
544 Some("xlk") => "application/vnd.ms-excel",
545 Some("xll") => "application/vnd.ms-excel",
546 Some("xlm") => "application/vnd.ms-excel",
547 Some("xls") => "application/vnd.ms-excel",
548 Some("xlsb") => "application/vnd.ms-excel.sheet.binary.macroEnabled.12",
549 Some("xlsm") => "application/vnd.ms-excel.sheet.macroEnabled.12",
550 Some("xlsx") => "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
551 Some("xlt") => "application/vnd.ms-excel",
552 Some("xltm") => "application/vnd.ms-excel.template.macroEnabled.12",
553 Some("xltx") => "application/vnd.openxmlformats-officedocument.spreadsheetml.template",
554 Some("xlw") => "application/vnd.ms-excel",
555 Some("xml") => "application/xml",
556 Some("xmta") => "application/xml",
557 Some("xof") => "x-world/x-vrml",
558 Some("xoml") => "text/plain; charset=utf8",
559 Some("xpm") => "image/x-xpixmap",
560 Some("xps") => "application/vnd.ms-xpsdocument",
561 Some("xrm-ms") => "application/xml",
562 Some("xsc") => "application/xml",
563 Some("xsd") => "application/xml",
564 Some("xsf") => "application/xml",
565 Some("xsl") => "application/xml",
566 Some("xslt") => "application/xslt+xml",
567 Some("xsn") => "application/octet-stream",
568 Some("xss") => "application/xml",
569 Some("xtp") => "application/octet-stream",
570 Some("xwd") => "image/x-xwindowdump",
571 Some("z") => "application/x-compress",
572 Some("zip") => "application/zip",
573 _ => "application/octet-stream",
574 }
575}