rack 1.0.1 → 2.2.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +829 -0
  3. data/CONTRIBUTING.md +136 -0
  4. data/{COPYING → MIT-LICENSE} +4 -2
  5. data/README.rdoc +355 -0
  6. data/Rakefile +64 -98
  7. data/SPEC.rdoc +292 -0
  8. data/bin/rackup +3 -174
  9. data/contrib/rack.png +0 -0
  10. data/contrib/rack.svg +150 -0
  11. data/contrib/rack_logo.svg +164 -111
  12. data/contrib/rdoc.css +412 -0
  13. data/example/lobster.ru +2 -0
  14. data/example/protectedlobster.rb +4 -2
  15. data/example/protectedlobster.ru +3 -1
  16. data/lib/rack/auth/abstract/handler.rb +7 -5
  17. data/lib/rack/auth/abstract/request.rb +12 -2
  18. data/lib/rack/auth/basic.rb +6 -4
  19. data/lib/rack/auth/digest/md5.rb +20 -13
  20. data/lib/rack/auth/digest/nonce.rb +6 -4
  21. data/lib/rack/auth/digest/params.rb +11 -12
  22. data/lib/rack/auth/digest/request.rb +15 -12
  23. data/lib/rack/body_proxy.rb +45 -0
  24. data/lib/rack/builder.rb +213 -19
  25. data/lib/rack/cascade.rb +50 -18
  26. data/lib/rack/chunked.rb +95 -27
  27. data/lib/rack/common_logger.rb +84 -0
  28. data/lib/rack/conditional_get.rb +83 -0
  29. data/lib/rack/config.rb +22 -0
  30. data/lib/rack/content_length.rb +19 -10
  31. data/lib/rack/content_type.rb +12 -5
  32. data/lib/rack/core_ext/regexp.rb +14 -0
  33. data/lib/rack/deflater.rb +90 -42
  34. data/lib/rack/directory.rb +118 -72
  35. data/lib/rack/etag.rb +77 -0
  36. data/lib/rack/events.rb +153 -0
  37. data/lib/rack/file.rb +4 -85
  38. data/lib/rack/files.rb +218 -0
  39. data/lib/rack/handler/cgi.rb +22 -24
  40. data/lib/rack/handler/fastcgi.rb +34 -24
  41. data/lib/rack/handler/lsws.rb +16 -15
  42. data/lib/rack/handler/scgi.rb +38 -29
  43. data/lib/rack/handler/thin.rb +23 -7
  44. data/lib/rack/handler/webrick.rb +95 -37
  45. data/lib/rack/handler.rb +49 -14
  46. data/lib/rack/head.rb +19 -13
  47. data/lib/rack/lint.rb +466 -217
  48. data/lib/rack/lobster.rb +19 -14
  49. data/lib/rack/lock.rb +24 -8
  50. data/lib/rack/logger.rb +20 -0
  51. data/lib/rack/media_type.rb +53 -0
  52. data/lib/rack/method_override.rb +52 -0
  53. data/lib/rack/mime.rb +652 -171
  54. data/lib/rack/mock.rb +203 -64
  55. data/lib/rack/multipart/generator.rb +97 -0
  56. data/lib/rack/multipart/parser.rb +440 -0
  57. data/lib/rack/multipart/uploaded_file.rb +41 -0
  58. data/lib/rack/multipart.rb +64 -0
  59. data/lib/rack/null_logger.rb +39 -0
  60. data/lib/rack/query_parser.rb +266 -0
  61. data/lib/rack/recursive.rb +18 -11
  62. data/lib/rack/reloader.rb +13 -5
  63. data/lib/rack/request.rb +607 -191
  64. data/lib/rack/response.rb +245 -110
  65. data/lib/rack/rewindable_input.rb +15 -21
  66. data/lib/rack/runtime.rb +34 -0
  67. data/lib/rack/sendfile.rb +192 -0
  68. data/lib/rack/server.rb +466 -0
  69. data/lib/rack/session/abstract/id.rb +449 -68
  70. data/lib/rack/session/cookie.rb +159 -47
  71. data/lib/rack/session/memcache.rb +4 -103
  72. data/lib/rack/session/pool.rb +39 -49
  73. data/lib/rack/show_exceptions.rb +390 -0
  74. data/lib/rack/{showstatus.rb → show_status.rb} +21 -14
  75. data/lib/rack/static.rb +164 -14
  76. data/lib/rack/tempfile_reaper.rb +22 -0
  77. data/lib/rack/urlmap.rb +60 -18
  78. data/lib/rack/utils.rb +508 -277
  79. data/lib/rack/version.rb +29 -0
  80. data/lib/rack.rb +85 -34
  81. data/rack.gemspec +43 -51
  82. metadata +119 -207
  83. data/KNOWN-ISSUES +0 -18
  84. data/RDOX +0 -428
  85. data/README +0 -364
  86. data/SPEC +0 -164
  87. data/lib/rack/adapter/camping.rb +0 -22
  88. data/lib/rack/auth/openid.rb +0 -480
  89. data/lib/rack/commonlogger.rb +0 -61
  90. data/lib/rack/conditionalget.rb +0 -47
  91. data/lib/rack/handler/evented_mongrel.rb +0 -8
  92. data/lib/rack/handler/mongrel.rb +0 -87
  93. data/lib/rack/handler/swiftiplied_mongrel.rb +0 -8
  94. data/lib/rack/methodoverride.rb +0 -27
  95. data/lib/rack/showexceptions.rb +0 -349
  96. data/test/cgi/lighttpd.conf +0 -20
  97. data/test/cgi/test +0 -9
  98. data/test/cgi/test.fcgi +0 -8
  99. data/test/cgi/test.ru +0 -7
  100. data/test/multipart/binary +0 -0
  101. data/test/multipart/empty +0 -10
  102. data/test/multipart/ie +0 -6
  103. data/test/multipart/nested +0 -10
  104. data/test/multipart/none +0 -9
  105. data/test/multipart/semicolon +0 -6
  106. data/test/multipart/text +0 -10
  107. data/test/spec_rack_auth_basic.rb +0 -73
  108. data/test/spec_rack_auth_digest.rb +0 -226
  109. data/test/spec_rack_auth_openid.rb +0 -84
  110. data/test/spec_rack_builder.rb +0 -84
  111. data/test/spec_rack_camping.rb +0 -51
  112. data/test/spec_rack_cascade.rb +0 -50
  113. data/test/spec_rack_cgi.rb +0 -89
  114. data/test/spec_rack_chunked.rb +0 -62
  115. data/test/spec_rack_commonlogger.rb +0 -32
  116. data/test/spec_rack_conditionalget.rb +0 -41
  117. data/test/spec_rack_content_length.rb +0 -43
  118. data/test/spec_rack_content_type.rb +0 -30
  119. data/test/spec_rack_deflater.rb +0 -127
  120. data/test/spec_rack_directory.rb +0 -61
  121. data/test/spec_rack_fastcgi.rb +0 -89
  122. data/test/spec_rack_file.rb +0 -75
  123. data/test/spec_rack_handler.rb +0 -43
  124. data/test/spec_rack_head.rb +0 -30
  125. data/test/spec_rack_lint.rb +0 -521
  126. data/test/spec_rack_lobster.rb +0 -45
  127. data/test/spec_rack_lock.rb +0 -38
  128. data/test/spec_rack_methodoverride.rb +0 -60
  129. data/test/spec_rack_mock.rb +0 -157
  130. data/test/spec_rack_mongrel.rb +0 -189
  131. data/test/spec_rack_recursive.rb +0 -77
  132. data/test/spec_rack_request.rb +0 -504
  133. data/test/spec_rack_response.rb +0 -218
  134. data/test/spec_rack_rewindable_input.rb +0 -118
  135. data/test/spec_rack_session_cookie.rb +0 -82
  136. data/test/spec_rack_session_memcache.rb +0 -240
  137. data/test/spec_rack_session_pool.rb +0 -172
  138. data/test/spec_rack_showexceptions.rb +0 -21
  139. data/test/spec_rack_showstatus.rb +0 -72
  140. data/test/spec_rack_static.rb +0 -37
  141. data/test/spec_rack_thin.rb +0 -91
  142. data/test/spec_rack_urlmap.rb +0 -185
  143. data/test/spec_rack_utils.rb +0 -387
  144. data/test/spec_rack_webrick.rb +0 -130
  145. data/test/testrequest.rb +0 -57
  146. data/test/unregistered_handler/rack/handler/unregistered.rb +0 -7
  147. data/test/unregistered_handler/rack/handler/unregistered_long_one.rb +0 -7
data/lib/rack/mime.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Rack
2
4
  module Mime
3
5
  # Returns String with mime type if found, otherwise use +fallback+.
@@ -13,11 +15,26 @@ module Rack
13
15
  # This is a shortcut for:
14
16
  # Rack::Mime::MIME_TYPES.fetch('.foo', 'application/octet-stream')
15
17
 
16
- def mime_type(ext, fallback='application/octet-stream')
17
- MIME_TYPES.fetch(ext, fallback)
18
+ def mime_type(ext, fallback = 'application/octet-stream')
19
+ MIME_TYPES.fetch(ext.to_s.downcase, fallback)
18
20
  end
19
21
  module_function :mime_type
20
22
 
23
+ # Returns true if the given value is a mime match for the given mime match
24
+ # specification, false otherwise.
25
+ #
26
+ # Rack::Mime.match?('text/html', 'text/*') => true
27
+ # Rack::Mime.match?('text/plain', '*') => true
28
+ # Rack::Mime.match?('text/html', 'application/json') => false
29
+
30
+ def match?(value, matcher)
31
+ v1, v2 = value.split('/', 2)
32
+ m1, m2 = matcher.split('/', 2)
33
+
34
+ (m1 == '*' || v1 == m1) && (m2.nil? || m2 == '*' || m2 == v2)
35
+ end
36
+ module_function :match?
37
+
21
38
  # List of most common mime-types, selected various sources
22
39
  # according to their usefulness in a webserving scope for Ruby
23
40
  # users.
@@ -28,177 +45,641 @@ module Rack
28
45
  # list = WEBrick::HTTPUtils.load_mime_types('/etc/mime.types')
29
46
  # Rack::Mime::MIME_TYPES.merge!(list)
30
47
  #
31
- # To add the list mongrel provides, use:
32
- #
33
- # require 'mongrel/handlers'
34
- # Rack::Mime::MIME_TYPES.merge!(Mongrel::DirHandler::MIME_TYPES)
48
+ # N.B. On Ubuntu the mime.types file does not include the leading period, so
49
+ # users may need to modify the data before merging into the hash.
35
50
 
36
51
  MIME_TYPES = {
37
- ".3gp" => "video/3gpp",
38
- ".a" => "application/octet-stream",
39
- ".ai" => "application/postscript",
40
- ".aif" => "audio/x-aiff",
41
- ".aiff" => "audio/x-aiff",
42
- ".asc" => "application/pgp-signature",
43
- ".asf" => "video/x-ms-asf",
44
- ".asm" => "text/x-asm",
45
- ".asx" => "video/x-ms-asf",
46
- ".atom" => "application/atom+xml",
47
- ".au" => "audio/basic",
48
- ".avi" => "video/x-msvideo",
49
- ".bat" => "application/x-msdownload",
50
- ".bin" => "application/octet-stream",
51
- ".bmp" => "image/bmp",
52
- ".bz2" => "application/x-bzip2",
53
- ".c" => "text/x-c",
54
- ".cab" => "application/vnd.ms-cab-compressed",
55
- ".cc" => "text/x-c",
56
- ".chm" => "application/vnd.ms-htmlhelp",
57
- ".class" => "application/octet-stream",
58
- ".com" => "application/x-msdownload",
59
- ".conf" => "text/plain",
60
- ".cpp" => "text/x-c",
61
- ".crt" => "application/x-x509-ca-cert",
62
- ".css" => "text/css",
63
- ".csv" => "text/csv",
64
- ".cxx" => "text/x-c",
65
- ".deb" => "application/x-debian-package",
66
- ".der" => "application/x-x509-ca-cert",
67
- ".diff" => "text/x-diff",
68
- ".djv" => "image/vnd.djvu",
69
- ".djvu" => "image/vnd.djvu",
70
- ".dll" => "application/x-msdownload",
71
- ".dmg" => "application/octet-stream",
72
- ".doc" => "application/msword",
73
- ".dot" => "application/msword",
74
- ".dtd" => "application/xml-dtd",
75
- ".dvi" => "application/x-dvi",
76
- ".ear" => "application/java-archive",
77
- ".eml" => "message/rfc822",
78
- ".eps" => "application/postscript",
79
- ".exe" => "application/x-msdownload",
80
- ".f" => "text/x-fortran",
81
- ".f77" => "text/x-fortran",
82
- ".f90" => "text/x-fortran",
83
- ".flv" => "video/x-flv",
84
- ".for" => "text/x-fortran",
85
- ".gem" => "application/octet-stream",
86
- ".gemspec" => "text/x-script.ruby",
87
- ".gif" => "image/gif",
88
- ".gz" => "application/x-gzip",
89
- ".h" => "text/x-c",
90
- ".hh" => "text/x-c",
91
- ".htm" => "text/html",
92
- ".html" => "text/html",
93
- ".ico" => "image/vnd.microsoft.icon",
94
- ".ics" => "text/calendar",
95
- ".ifb" => "text/calendar",
96
- ".iso" => "application/octet-stream",
97
- ".jar" => "application/java-archive",
98
- ".java" => "text/x-java-source",
99
- ".jnlp" => "application/x-java-jnlp-file",
100
- ".jpeg" => "image/jpeg",
101
- ".jpg" => "image/jpeg",
102
- ".js" => "application/javascript",
103
- ".json" => "application/json",
104
- ".log" => "text/plain",
105
- ".m3u" => "audio/x-mpegurl",
106
- ".m4v" => "video/mp4",
107
- ".man" => "text/troff",
108
- ".mathml" => "application/mathml+xml",
109
- ".mbox" => "application/mbox",
110
- ".mdoc" => "text/troff",
111
- ".me" => "text/troff",
112
- ".mid" => "audio/midi",
113
- ".midi" => "audio/midi",
114
- ".mime" => "message/rfc822",
115
- ".mml" => "application/mathml+xml",
116
- ".mng" => "video/x-mng",
117
- ".mov" => "video/quicktime",
118
- ".mp3" => "audio/mpeg",
119
- ".mp4" => "video/mp4",
120
- ".mp4v" => "video/mp4",
121
- ".mpeg" => "video/mpeg",
122
- ".mpg" => "video/mpeg",
123
- ".ms" => "text/troff",
124
- ".msi" => "application/x-msdownload",
125
- ".odp" => "application/vnd.oasis.opendocument.presentation",
126
- ".ods" => "application/vnd.oasis.opendocument.spreadsheet",
127
- ".odt" => "application/vnd.oasis.opendocument.text",
128
- ".ogg" => "application/ogg",
129
- ".p" => "text/x-pascal",
130
- ".pas" => "text/x-pascal",
131
- ".pbm" => "image/x-portable-bitmap",
132
- ".pdf" => "application/pdf",
133
- ".pem" => "application/x-x509-ca-cert",
134
- ".pgm" => "image/x-portable-graymap",
135
- ".pgp" => "application/pgp-encrypted",
136
- ".pkg" => "application/octet-stream",
137
- ".pl" => "text/x-script.perl",
138
- ".pm" => "text/x-script.perl-module",
139
- ".png" => "image/png",
140
- ".pnm" => "image/x-portable-anymap",
141
- ".ppm" => "image/x-portable-pixmap",
142
- ".pps" => "application/vnd.ms-powerpoint",
143
- ".ppt" => "application/vnd.ms-powerpoint",
144
- ".ps" => "application/postscript",
145
- ".psd" => "image/vnd.adobe.photoshop",
146
- ".py" => "text/x-script.python",
147
- ".qt" => "video/quicktime",
148
- ".ra" => "audio/x-pn-realaudio",
149
- ".rake" => "text/x-script.ruby",
150
- ".ram" => "audio/x-pn-realaudio",
151
- ".rar" => "application/x-rar-compressed",
152
- ".rb" => "text/x-script.ruby",
153
- ".rdf" => "application/rdf+xml",
154
- ".roff" => "text/troff",
155
- ".rpm" => "application/x-redhat-package-manager",
156
- ".rss" => "application/rss+xml",
157
- ".rtf" => "application/rtf",
158
- ".ru" => "text/x-script.ruby",
159
- ".s" => "text/x-asm",
160
- ".sgm" => "text/sgml",
161
- ".sgml" => "text/sgml",
162
- ".sh" => "application/x-sh",
163
- ".sig" => "application/pgp-signature",
164
- ".snd" => "audio/basic",
165
- ".so" => "application/octet-stream",
166
- ".svg" => "image/svg+xml",
167
- ".svgz" => "image/svg+xml",
168
- ".swf" => "application/x-shockwave-flash",
169
- ".t" => "text/troff",
170
- ".tar" => "application/x-tar",
171
- ".tbz" => "application/x-bzip-compressed-tar",
172
- ".tcl" => "application/x-tcl",
173
- ".tex" => "application/x-tex",
174
- ".texi" => "application/x-texinfo",
175
- ".texinfo" => "application/x-texinfo",
176
- ".text" => "text/plain",
177
- ".tif" => "image/tiff",
178
- ".tiff" => "image/tiff",
179
- ".torrent" => "application/x-bittorrent",
180
- ".tr" => "text/troff",
181
- ".txt" => "text/plain",
182
- ".vcf" => "text/x-vcard",
183
- ".vcs" => "text/x-vcalendar",
184
- ".vrml" => "model/vrml",
185
- ".war" => "application/java-archive",
186
- ".wav" => "audio/x-wav",
187
- ".wma" => "audio/x-ms-wma",
188
- ".wmv" => "video/x-ms-wmv",
189
- ".wmx" => "video/x-ms-wmx",
190
- ".wrl" => "model/vrml",
191
- ".wsdl" => "application/wsdl+xml",
192
- ".xbm" => "image/x-xbitmap",
193
- ".xhtml" => "application/xhtml+xml",
194
- ".xls" => "application/vnd.ms-excel",
195
- ".xml" => "application/xml",
196
- ".xpm" => "image/x-xpixmap",
197
- ".xsl" => "application/xml",
198
- ".xslt" => "application/xslt+xml",
199
- ".yaml" => "text/yaml",
200
- ".yml" => "text/yaml",
201
- ".zip" => "application/zip",
52
+ ".123" => "application/vnd.lotus-1-2-3",
53
+ ".3dml" => "text/vnd.in3d.3dml",
54
+ ".3g2" => "video/3gpp2",
55
+ ".3gp" => "video/3gpp",
56
+ ".a" => "application/octet-stream",
57
+ ".acc" => "application/vnd.americandynamics.acc",
58
+ ".ace" => "application/x-ace-compressed",
59
+ ".acu" => "application/vnd.acucobol",
60
+ ".aep" => "application/vnd.audiograph",
61
+ ".afp" => "application/vnd.ibm.modcap",
62
+ ".ai" => "application/postscript",
63
+ ".aif" => "audio/x-aiff",
64
+ ".aiff" => "audio/x-aiff",
65
+ ".ami" => "application/vnd.amiga.ami",
66
+ ".appcache" => "text/cache-manifest",
67
+ ".apr" => "application/vnd.lotus-approach",
68
+ ".asc" => "application/pgp-signature",
69
+ ".asf" => "video/x-ms-asf",
70
+ ".asm" => "text/x-asm",
71
+ ".aso" => "application/vnd.accpac.simply.aso",
72
+ ".asx" => "video/x-ms-asf",
73
+ ".atc" => "application/vnd.acucorp",
74
+ ".atom" => "application/atom+xml",
75
+ ".atomcat" => "application/atomcat+xml",
76
+ ".atomsvc" => "application/atomsvc+xml",
77
+ ".atx" => "application/vnd.antix.game-component",
78
+ ".au" => "audio/basic",
79
+ ".avi" => "video/x-msvideo",
80
+ ".bat" => "application/x-msdownload",
81
+ ".bcpio" => "application/x-bcpio",
82
+ ".bdm" => "application/vnd.syncml.dm+wbxml",
83
+ ".bh2" => "application/vnd.fujitsu.oasysprs",
84
+ ".bin" => "application/octet-stream",
85
+ ".bmi" => "application/vnd.bmi",
86
+ ".bmp" => "image/bmp",
87
+ ".box" => "application/vnd.previewsystems.box",
88
+ ".btif" => "image/prs.btif",
89
+ ".bz" => "application/x-bzip",
90
+ ".bz2" => "application/x-bzip2",
91
+ ".c" => "text/x-c",
92
+ ".c4g" => "application/vnd.clonk.c4group",
93
+ ".cab" => "application/vnd.ms-cab-compressed",
94
+ ".cc" => "text/x-c",
95
+ ".ccxml" => "application/ccxml+xml",
96
+ ".cdbcmsg" => "application/vnd.contact.cmsg",
97
+ ".cdkey" => "application/vnd.mediastation.cdkey",
98
+ ".cdx" => "chemical/x-cdx",
99
+ ".cdxml" => "application/vnd.chemdraw+xml",
100
+ ".cdy" => "application/vnd.cinderella",
101
+ ".cer" => "application/pkix-cert",
102
+ ".cgm" => "image/cgm",
103
+ ".chat" => "application/x-chat",
104
+ ".chm" => "application/vnd.ms-htmlhelp",
105
+ ".chrt" => "application/vnd.kde.kchart",
106
+ ".cif" => "chemical/x-cif",
107
+ ".cii" => "application/vnd.anser-web-certificate-issue-initiation",
108
+ ".cil" => "application/vnd.ms-artgalry",
109
+ ".cla" => "application/vnd.claymore",
110
+ ".class" => "application/octet-stream",
111
+ ".clkk" => "application/vnd.crick.clicker.keyboard",
112
+ ".clkp" => "application/vnd.crick.clicker.palette",
113
+ ".clkt" => "application/vnd.crick.clicker.template",
114
+ ".clkw" => "application/vnd.crick.clicker.wordbank",
115
+ ".clkx" => "application/vnd.crick.clicker",
116
+ ".clp" => "application/x-msclip",
117
+ ".cmc" => "application/vnd.cosmocaller",
118
+ ".cmdf" => "chemical/x-cmdf",
119
+ ".cml" => "chemical/x-cml",
120
+ ".cmp" => "application/vnd.yellowriver-custom-menu",
121
+ ".cmx" => "image/x-cmx",
122
+ ".com" => "application/x-msdownload",
123
+ ".conf" => "text/plain",
124
+ ".cpio" => "application/x-cpio",
125
+ ".cpp" => "text/x-c",
126
+ ".cpt" => "application/mac-compactpro",
127
+ ".crd" => "application/x-mscardfile",
128
+ ".crl" => "application/pkix-crl",
129
+ ".crt" => "application/x-x509-ca-cert",
130
+ ".csh" => "application/x-csh",
131
+ ".csml" => "chemical/x-csml",
132
+ ".csp" => "application/vnd.commonspace",
133
+ ".css" => "text/css",
134
+ ".csv" => "text/csv",
135
+ ".curl" => "application/vnd.curl",
136
+ ".cww" => "application/prs.cww",
137
+ ".cxx" => "text/x-c",
138
+ ".daf" => "application/vnd.mobius.daf",
139
+ ".davmount" => "application/davmount+xml",
140
+ ".dcr" => "application/x-director",
141
+ ".dd2" => "application/vnd.oma.dd2+xml",
142
+ ".ddd" => "application/vnd.fujixerox.ddd",
143
+ ".deb" => "application/x-debian-package",
144
+ ".der" => "application/x-x509-ca-cert",
145
+ ".dfac" => "application/vnd.dreamfactory",
146
+ ".diff" => "text/x-diff",
147
+ ".dis" => "application/vnd.mobius.dis",
148
+ ".djv" => "image/vnd.djvu",
149
+ ".djvu" => "image/vnd.djvu",
150
+ ".dll" => "application/x-msdownload",
151
+ ".dmg" => "application/octet-stream",
152
+ ".dna" => "application/vnd.dna",
153
+ ".doc" => "application/msword",
154
+ ".docm" => "application/vnd.ms-word.document.macroEnabled.12",
155
+ ".docx" => "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
156
+ ".dot" => "application/msword",
157
+ ".dotm" => "application/vnd.ms-word.template.macroEnabled.12",
158
+ ".dotx" => "application/vnd.openxmlformats-officedocument.wordprocessingml.template",
159
+ ".dp" => "application/vnd.osgi.dp",
160
+ ".dpg" => "application/vnd.dpgraph",
161
+ ".dsc" => "text/prs.lines.tag",
162
+ ".dtd" => "application/xml-dtd",
163
+ ".dts" => "audio/vnd.dts",
164
+ ".dtshd" => "audio/vnd.dts.hd",
165
+ ".dv" => "video/x-dv",
166
+ ".dvi" => "application/x-dvi",
167
+ ".dwf" => "model/vnd.dwf",
168
+ ".dwg" => "image/vnd.dwg",
169
+ ".dxf" => "image/vnd.dxf",
170
+ ".dxp" => "application/vnd.spotfire.dxp",
171
+ ".ear" => "application/java-archive",
172
+ ".ecelp4800" => "audio/vnd.nuera.ecelp4800",
173
+ ".ecelp7470" => "audio/vnd.nuera.ecelp7470",
174
+ ".ecelp9600" => "audio/vnd.nuera.ecelp9600",
175
+ ".ecma" => "application/ecmascript",
176
+ ".edm" => "application/vnd.novadigm.edm",
177
+ ".edx" => "application/vnd.novadigm.edx",
178
+ ".efif" => "application/vnd.picsel",
179
+ ".ei6" => "application/vnd.pg.osasli",
180
+ ".eml" => "message/rfc822",
181
+ ".eol" => "audio/vnd.digital-winds",
182
+ ".eot" => "application/vnd.ms-fontobject",
183
+ ".eps" => "application/postscript",
184
+ ".es3" => "application/vnd.eszigno3+xml",
185
+ ".esf" => "application/vnd.epson.esf",
186
+ ".etx" => "text/x-setext",
187
+ ".exe" => "application/x-msdownload",
188
+ ".ext" => "application/vnd.novadigm.ext",
189
+ ".ez" => "application/andrew-inset",
190
+ ".ez2" => "application/vnd.ezpix-album",
191
+ ".ez3" => "application/vnd.ezpix-package",
192
+ ".f" => "text/x-fortran",
193
+ ".f77" => "text/x-fortran",
194
+ ".f90" => "text/x-fortran",
195
+ ".fbs" => "image/vnd.fastbidsheet",
196
+ ".fdf" => "application/vnd.fdf",
197
+ ".fe_launch" => "application/vnd.denovo.fcselayout-link",
198
+ ".fg5" => "application/vnd.fujitsu.oasysgp",
199
+ ".fli" => "video/x-fli",
200
+ ".flo" => "application/vnd.micrografx.flo",
201
+ ".flv" => "video/x-flv",
202
+ ".flw" => "application/vnd.kde.kivio",
203
+ ".flx" => "text/vnd.fmi.flexstor",
204
+ ".fly" => "text/vnd.fly",
205
+ ".fm" => "application/vnd.framemaker",
206
+ ".fnc" => "application/vnd.frogans.fnc",
207
+ ".for" => "text/x-fortran",
208
+ ".fpx" => "image/vnd.fpx",
209
+ ".fsc" => "application/vnd.fsc.weblaunch",
210
+ ".fst" => "image/vnd.fst",
211
+ ".ftc" => "application/vnd.fluxtime.clip",
212
+ ".fti" => "application/vnd.anser-web-funds-transfer-initiation",
213
+ ".fvt" => "video/vnd.fvt",
214
+ ".fzs" => "application/vnd.fuzzysheet",
215
+ ".g3" => "image/g3fax",
216
+ ".gac" => "application/vnd.groove-account",
217
+ ".gdl" => "model/vnd.gdl",
218
+ ".gem" => "application/octet-stream",
219
+ ".gemspec" => "text/x-script.ruby",
220
+ ".ghf" => "application/vnd.groove-help",
221
+ ".gif" => "image/gif",
222
+ ".gim" => "application/vnd.groove-identity-message",
223
+ ".gmx" => "application/vnd.gmx",
224
+ ".gph" => "application/vnd.flographit",
225
+ ".gqf" => "application/vnd.grafeq",
226
+ ".gram" => "application/srgs",
227
+ ".grv" => "application/vnd.groove-injector",
228
+ ".grxml" => "application/srgs+xml",
229
+ ".gtar" => "application/x-gtar",
230
+ ".gtm" => "application/vnd.groove-tool-message",
231
+ ".gtw" => "model/vnd.gtw",
232
+ ".gv" => "text/vnd.graphviz",
233
+ ".gz" => "application/x-gzip",
234
+ ".h" => "text/x-c",
235
+ ".h261" => "video/h261",
236
+ ".h263" => "video/h263",
237
+ ".h264" => "video/h264",
238
+ ".hbci" => "application/vnd.hbci",
239
+ ".hdf" => "application/x-hdf",
240
+ ".hh" => "text/x-c",
241
+ ".hlp" => "application/winhlp",
242
+ ".hpgl" => "application/vnd.hp-hpgl",
243
+ ".hpid" => "application/vnd.hp-hpid",
244
+ ".hps" => "application/vnd.hp-hps",
245
+ ".hqx" => "application/mac-binhex40",
246
+ ".htc" => "text/x-component",
247
+ ".htke" => "application/vnd.kenameaapp",
248
+ ".htm" => "text/html",
249
+ ".html" => "text/html",
250
+ ".hvd" => "application/vnd.yamaha.hv-dic",
251
+ ".hvp" => "application/vnd.yamaha.hv-voice",
252
+ ".hvs" => "application/vnd.yamaha.hv-script",
253
+ ".icc" => "application/vnd.iccprofile",
254
+ ".ice" => "x-conference/x-cooltalk",
255
+ ".ico" => "image/vnd.microsoft.icon",
256
+ ".ics" => "text/calendar",
257
+ ".ief" => "image/ief",
258
+ ".ifb" => "text/calendar",
259
+ ".ifm" => "application/vnd.shana.informed.formdata",
260
+ ".igl" => "application/vnd.igloader",
261
+ ".igs" => "model/iges",
262
+ ".igx" => "application/vnd.micrografx.igx",
263
+ ".iif" => "application/vnd.shana.informed.interchange",
264
+ ".imp" => "application/vnd.accpac.simply.imp",
265
+ ".ims" => "application/vnd.ms-ims",
266
+ ".ipk" => "application/vnd.shana.informed.package",
267
+ ".irm" => "application/vnd.ibm.rights-management",
268
+ ".irp" => "application/vnd.irepository.package+xml",
269
+ ".iso" => "application/octet-stream",
270
+ ".itp" => "application/vnd.shana.informed.formtemplate",
271
+ ".ivp" => "application/vnd.immervision-ivp",
272
+ ".ivu" => "application/vnd.immervision-ivu",
273
+ ".jad" => "text/vnd.sun.j2me.app-descriptor",
274
+ ".jam" => "application/vnd.jam",
275
+ ".jar" => "application/java-archive",
276
+ ".java" => "text/x-java-source",
277
+ ".jisp" => "application/vnd.jisp",
278
+ ".jlt" => "application/vnd.hp-jlyt",
279
+ ".jnlp" => "application/x-java-jnlp-file",
280
+ ".joda" => "application/vnd.joost.joda-archive",
281
+ ".jp2" => "image/jp2",
282
+ ".jpeg" => "image/jpeg",
283
+ ".jpg" => "image/jpeg",
284
+ ".jpgv" => "video/jpeg",
285
+ ".jpm" => "video/jpm",
286
+ ".js" => "application/javascript",
287
+ ".json" => "application/json",
288
+ ".karbon" => "application/vnd.kde.karbon",
289
+ ".kfo" => "application/vnd.kde.kformula",
290
+ ".kia" => "application/vnd.kidspiration",
291
+ ".kml" => "application/vnd.google-earth.kml+xml",
292
+ ".kmz" => "application/vnd.google-earth.kmz",
293
+ ".kne" => "application/vnd.kinar",
294
+ ".kon" => "application/vnd.kde.kontour",
295
+ ".kpr" => "application/vnd.kde.kpresenter",
296
+ ".ksp" => "application/vnd.kde.kspread",
297
+ ".ktz" => "application/vnd.kahootz",
298
+ ".kwd" => "application/vnd.kde.kword",
299
+ ".latex" => "application/x-latex",
300
+ ".lbd" => "application/vnd.llamagraphics.life-balance.desktop",
301
+ ".lbe" => "application/vnd.llamagraphics.life-balance.exchange+xml",
302
+ ".les" => "application/vnd.hhe.lesson-player",
303
+ ".link66" => "application/vnd.route66.link66+xml",
304
+ ".log" => "text/plain",
305
+ ".lostxml" => "application/lost+xml",
306
+ ".lrm" => "application/vnd.ms-lrm",
307
+ ".ltf" => "application/vnd.frogans.ltf",
308
+ ".lvp" => "audio/vnd.lucent.voice",
309
+ ".lwp" => "application/vnd.lotus-wordpro",
310
+ ".m3u" => "audio/x-mpegurl",
311
+ ".m3u8" => "application/x-mpegurl",
312
+ ".m4a" => "audio/mp4a-latm",
313
+ ".m4v" => "video/mp4",
314
+ ".ma" => "application/mathematica",
315
+ ".mag" => "application/vnd.ecowin.chart",
316
+ ".man" => "text/troff",
317
+ ".manifest" => "text/cache-manifest",
318
+ ".mathml" => "application/mathml+xml",
319
+ ".mbk" => "application/vnd.mobius.mbk",
320
+ ".mbox" => "application/mbox",
321
+ ".mc1" => "application/vnd.medcalcdata",
322
+ ".mcd" => "application/vnd.mcd",
323
+ ".mdb" => "application/x-msaccess",
324
+ ".mdi" => "image/vnd.ms-modi",
325
+ ".mdoc" => "text/troff",
326
+ ".me" => "text/troff",
327
+ ".mfm" => "application/vnd.mfmp",
328
+ ".mgz" => "application/vnd.proteus.magazine",
329
+ ".mid" => "audio/midi",
330
+ ".midi" => "audio/midi",
331
+ ".mif" => "application/vnd.mif",
332
+ ".mime" => "message/rfc822",
333
+ ".mj2" => "video/mj2",
334
+ ".mlp" => "application/vnd.dolby.mlp",
335
+ ".mmd" => "application/vnd.chipnuts.karaoke-mmd",
336
+ ".mmf" => "application/vnd.smaf",
337
+ ".mml" => "application/mathml+xml",
338
+ ".mmr" => "image/vnd.fujixerox.edmics-mmr",
339
+ ".mng" => "video/x-mng",
340
+ ".mny" => "application/x-msmoney",
341
+ ".mov" => "video/quicktime",
342
+ ".movie" => "video/x-sgi-movie",
343
+ ".mp3" => "audio/mpeg",
344
+ ".mp4" => "video/mp4",
345
+ ".mp4a" => "audio/mp4",
346
+ ".mp4s" => "application/mp4",
347
+ ".mp4v" => "video/mp4",
348
+ ".mpc" => "application/vnd.mophun.certificate",
349
+ ".mpd" => "application/dash+xml",
350
+ ".mpeg" => "video/mpeg",
351
+ ".mpg" => "video/mpeg",
352
+ ".mpga" => "audio/mpeg",
353
+ ".mpkg" => "application/vnd.apple.installer+xml",
354
+ ".mpm" => "application/vnd.blueice.multipass",
355
+ ".mpn" => "application/vnd.mophun.application",
356
+ ".mpp" => "application/vnd.ms-project",
357
+ ".mpy" => "application/vnd.ibm.minipay",
358
+ ".mqy" => "application/vnd.mobius.mqy",
359
+ ".mrc" => "application/marc",
360
+ ".ms" => "text/troff",
361
+ ".mscml" => "application/mediaservercontrol+xml",
362
+ ".mseq" => "application/vnd.mseq",
363
+ ".msf" => "application/vnd.epson.msf",
364
+ ".msh" => "model/mesh",
365
+ ".msi" => "application/x-msdownload",
366
+ ".msl" => "application/vnd.mobius.msl",
367
+ ".msty" => "application/vnd.muvee.style",
368
+ ".mts" => "model/vnd.mts",
369
+ ".mus" => "application/vnd.musician",
370
+ ".mvb" => "application/x-msmediaview",
371
+ ".mwf" => "application/vnd.mfer",
372
+ ".mxf" => "application/mxf",
373
+ ".mxl" => "application/vnd.recordare.musicxml",
374
+ ".mxml" => "application/xv+xml",
375
+ ".mxs" => "application/vnd.triscape.mxs",
376
+ ".mxu" => "video/vnd.mpegurl",
377
+ ".n" => "application/vnd.nokia.n-gage.symbian.install",
378
+ ".nc" => "application/x-netcdf",
379
+ ".ngdat" => "application/vnd.nokia.n-gage.data",
380
+ ".nlu" => "application/vnd.neurolanguage.nlu",
381
+ ".nml" => "application/vnd.enliven",
382
+ ".nnd" => "application/vnd.noblenet-directory",
383
+ ".nns" => "application/vnd.noblenet-sealer",
384
+ ".nnw" => "application/vnd.noblenet-web",
385
+ ".npx" => "image/vnd.net-fpx",
386
+ ".nsf" => "application/vnd.lotus-notes",
387
+ ".oa2" => "application/vnd.fujitsu.oasys2",
388
+ ".oa3" => "application/vnd.fujitsu.oasys3",
389
+ ".oas" => "application/vnd.fujitsu.oasys",
390
+ ".obd" => "application/x-msbinder",
391
+ ".oda" => "application/oda",
392
+ ".odc" => "application/vnd.oasis.opendocument.chart",
393
+ ".odf" => "application/vnd.oasis.opendocument.formula",
394
+ ".odg" => "application/vnd.oasis.opendocument.graphics",
395
+ ".odi" => "application/vnd.oasis.opendocument.image",
396
+ ".odp" => "application/vnd.oasis.opendocument.presentation",
397
+ ".ods" => "application/vnd.oasis.opendocument.spreadsheet",
398
+ ".odt" => "application/vnd.oasis.opendocument.text",
399
+ ".oga" => "audio/ogg",
400
+ ".ogg" => "application/ogg",
401
+ ".ogv" => "video/ogg",
402
+ ".ogx" => "application/ogg",
403
+ ".org" => "application/vnd.lotus-organizer",
404
+ ".otc" => "application/vnd.oasis.opendocument.chart-template",
405
+ ".otf" => "application/vnd.oasis.opendocument.formula-template",
406
+ ".otg" => "application/vnd.oasis.opendocument.graphics-template",
407
+ ".oth" => "application/vnd.oasis.opendocument.text-web",
408
+ ".oti" => "application/vnd.oasis.opendocument.image-template",
409
+ ".otm" => "application/vnd.oasis.opendocument.text-master",
410
+ ".ots" => "application/vnd.oasis.opendocument.spreadsheet-template",
411
+ ".ott" => "application/vnd.oasis.opendocument.text-template",
412
+ ".oxt" => "application/vnd.openofficeorg.extension",
413
+ ".p" => "text/x-pascal",
414
+ ".p10" => "application/pkcs10",
415
+ ".p12" => "application/x-pkcs12",
416
+ ".p7b" => "application/x-pkcs7-certificates",
417
+ ".p7m" => "application/pkcs7-mime",
418
+ ".p7r" => "application/x-pkcs7-certreqresp",
419
+ ".p7s" => "application/pkcs7-signature",
420
+ ".pas" => "text/x-pascal",
421
+ ".pbd" => "application/vnd.powerbuilder6",
422
+ ".pbm" => "image/x-portable-bitmap",
423
+ ".pcl" => "application/vnd.hp-pcl",
424
+ ".pclxl" => "application/vnd.hp-pclxl",
425
+ ".pcx" => "image/x-pcx",
426
+ ".pdb" => "chemical/x-pdb",
427
+ ".pdf" => "application/pdf",
428
+ ".pem" => "application/x-x509-ca-cert",
429
+ ".pfr" => "application/font-tdpfr",
430
+ ".pgm" => "image/x-portable-graymap",
431
+ ".pgn" => "application/x-chess-pgn",
432
+ ".pgp" => "application/pgp-encrypted",
433
+ ".pic" => "image/x-pict",
434
+ ".pict" => "image/pict",
435
+ ".pkg" => "application/octet-stream",
436
+ ".pki" => "application/pkixcmp",
437
+ ".pkipath" => "application/pkix-pkipath",
438
+ ".pl" => "text/x-script.perl",
439
+ ".plb" => "application/vnd.3gpp.pic-bw-large",
440
+ ".plc" => "application/vnd.mobius.plc",
441
+ ".plf" => "application/vnd.pocketlearn",
442
+ ".pls" => "application/pls+xml",
443
+ ".pm" => "text/x-script.perl-module",
444
+ ".pml" => "application/vnd.ctc-posml",
445
+ ".png" => "image/png",
446
+ ".pnm" => "image/x-portable-anymap",
447
+ ".pntg" => "image/x-macpaint",
448
+ ".portpkg" => "application/vnd.macports.portpkg",
449
+ ".pot" => "application/vnd.ms-powerpoint",
450
+ ".potm" => "application/vnd.ms-powerpoint.template.macroEnabled.12",
451
+ ".potx" => "application/vnd.openxmlformats-officedocument.presentationml.template",
452
+ ".ppa" => "application/vnd.ms-powerpoint",
453
+ ".ppam" => "application/vnd.ms-powerpoint.addin.macroEnabled.12",
454
+ ".ppd" => "application/vnd.cups-ppd",
455
+ ".ppm" => "image/x-portable-pixmap",
456
+ ".pps" => "application/vnd.ms-powerpoint",
457
+ ".ppsm" => "application/vnd.ms-powerpoint.slideshow.macroEnabled.12",
458
+ ".ppsx" => "application/vnd.openxmlformats-officedocument.presentationml.slideshow",
459
+ ".ppt" => "application/vnd.ms-powerpoint",
460
+ ".pptm" => "application/vnd.ms-powerpoint.presentation.macroEnabled.12",
461
+ ".pptx" => "application/vnd.openxmlformats-officedocument.presentationml.presentation",
462
+ ".prc" => "application/vnd.palm",
463
+ ".pre" => "application/vnd.lotus-freelance",
464
+ ".prf" => "application/pics-rules",
465
+ ".ps" => "application/postscript",
466
+ ".psb" => "application/vnd.3gpp.pic-bw-small",
467
+ ".psd" => "image/vnd.adobe.photoshop",
468
+ ".ptid" => "application/vnd.pvi.ptid1",
469
+ ".pub" => "application/x-mspublisher",
470
+ ".pvb" => "application/vnd.3gpp.pic-bw-var",
471
+ ".pwn" => "application/vnd.3m.post-it-notes",
472
+ ".py" => "text/x-script.python",
473
+ ".pya" => "audio/vnd.ms-playready.media.pya",
474
+ ".pyv" => "video/vnd.ms-playready.media.pyv",
475
+ ".qam" => "application/vnd.epson.quickanime",
476
+ ".qbo" => "application/vnd.intu.qbo",
477
+ ".qfx" => "application/vnd.intu.qfx",
478
+ ".qps" => "application/vnd.publishare-delta-tree",
479
+ ".qt" => "video/quicktime",
480
+ ".qtif" => "image/x-quicktime",
481
+ ".qxd" => "application/vnd.quark.quarkxpress",
482
+ ".ra" => "audio/x-pn-realaudio",
483
+ ".rake" => "text/x-script.ruby",
484
+ ".ram" => "audio/x-pn-realaudio",
485
+ ".rar" => "application/x-rar-compressed",
486
+ ".ras" => "image/x-cmu-raster",
487
+ ".rb" => "text/x-script.ruby",
488
+ ".rcprofile" => "application/vnd.ipunplugged.rcprofile",
489
+ ".rdf" => "application/rdf+xml",
490
+ ".rdz" => "application/vnd.data-vision.rdz",
491
+ ".rep" => "application/vnd.businessobjects",
492
+ ".rgb" => "image/x-rgb",
493
+ ".rif" => "application/reginfo+xml",
494
+ ".rl" => "application/resource-lists+xml",
495
+ ".rlc" => "image/vnd.fujixerox.edmics-rlc",
496
+ ".rld" => "application/resource-lists-diff+xml",
497
+ ".rm" => "application/vnd.rn-realmedia",
498
+ ".rmp" => "audio/x-pn-realaudio-plugin",
499
+ ".rms" => "application/vnd.jcp.javame.midlet-rms",
500
+ ".rnc" => "application/relax-ng-compact-syntax",
501
+ ".roff" => "text/troff",
502
+ ".rpm" => "application/x-redhat-package-manager",
503
+ ".rpss" => "application/vnd.nokia.radio-presets",
504
+ ".rpst" => "application/vnd.nokia.radio-preset",
505
+ ".rq" => "application/sparql-query",
506
+ ".rs" => "application/rls-services+xml",
507
+ ".rsd" => "application/rsd+xml",
508
+ ".rss" => "application/rss+xml",
509
+ ".rtf" => "application/rtf",
510
+ ".rtx" => "text/richtext",
511
+ ".ru" => "text/x-script.ruby",
512
+ ".s" => "text/x-asm",
513
+ ".saf" => "application/vnd.yamaha.smaf-audio",
514
+ ".sbml" => "application/sbml+xml",
515
+ ".sc" => "application/vnd.ibm.secure-container",
516
+ ".scd" => "application/x-msschedule",
517
+ ".scm" => "application/vnd.lotus-screencam",
518
+ ".scq" => "application/scvp-cv-request",
519
+ ".scs" => "application/scvp-cv-response",
520
+ ".sdkm" => "application/vnd.solent.sdkm+xml",
521
+ ".sdp" => "application/sdp",
522
+ ".see" => "application/vnd.seemail",
523
+ ".sema" => "application/vnd.sema",
524
+ ".semd" => "application/vnd.semd",
525
+ ".semf" => "application/vnd.semf",
526
+ ".setpay" => "application/set-payment-initiation",
527
+ ".setreg" => "application/set-registration-initiation",
528
+ ".sfd" => "application/vnd.hydrostatix.sof-data",
529
+ ".sfs" => "application/vnd.spotfire.sfs",
530
+ ".sgm" => "text/sgml",
531
+ ".sgml" => "text/sgml",
532
+ ".sh" => "application/x-sh",
533
+ ".shar" => "application/x-shar",
534
+ ".shf" => "application/shf+xml",
535
+ ".sig" => "application/pgp-signature",
536
+ ".sit" => "application/x-stuffit",
537
+ ".sitx" => "application/x-stuffitx",
538
+ ".skp" => "application/vnd.koan",
539
+ ".slt" => "application/vnd.epson.salt",
540
+ ".smi" => "application/smil+xml",
541
+ ".snd" => "audio/basic",
542
+ ".so" => "application/octet-stream",
543
+ ".spf" => "application/vnd.yamaha.smaf-phrase",
544
+ ".spl" => "application/x-futuresplash",
545
+ ".spot" => "text/vnd.in3d.spot",
546
+ ".spp" => "application/scvp-vp-response",
547
+ ".spq" => "application/scvp-vp-request",
548
+ ".src" => "application/x-wais-source",
549
+ ".srt" => "text/srt",
550
+ ".srx" => "application/sparql-results+xml",
551
+ ".sse" => "application/vnd.kodak-descriptor",
552
+ ".ssf" => "application/vnd.epson.ssf",
553
+ ".ssml" => "application/ssml+xml",
554
+ ".stf" => "application/vnd.wt.stf",
555
+ ".stk" => "application/hyperstudio",
556
+ ".str" => "application/vnd.pg.format",
557
+ ".sus" => "application/vnd.sus-calendar",
558
+ ".sv4cpio" => "application/x-sv4cpio",
559
+ ".sv4crc" => "application/x-sv4crc",
560
+ ".svd" => "application/vnd.svd",
561
+ ".svg" => "image/svg+xml",
562
+ ".svgz" => "image/svg+xml",
563
+ ".swf" => "application/x-shockwave-flash",
564
+ ".swi" => "application/vnd.arastra.swi",
565
+ ".t" => "text/troff",
566
+ ".tao" => "application/vnd.tao.intent-module-archive",
567
+ ".tar" => "application/x-tar",
568
+ ".tbz" => "application/x-bzip-compressed-tar",
569
+ ".tcap" => "application/vnd.3gpp2.tcap",
570
+ ".tcl" => "application/x-tcl",
571
+ ".tex" => "application/x-tex",
572
+ ".texi" => "application/x-texinfo",
573
+ ".texinfo" => "application/x-texinfo",
574
+ ".text" => "text/plain",
575
+ ".tif" => "image/tiff",
576
+ ".tiff" => "image/tiff",
577
+ ".tmo" => "application/vnd.tmobile-livetv",
578
+ ".torrent" => "application/x-bittorrent",
579
+ ".tpl" => "application/vnd.groove-tool-template",
580
+ ".tpt" => "application/vnd.trid.tpt",
581
+ ".tr" => "text/troff",
582
+ ".tra" => "application/vnd.trueapp",
583
+ ".trm" => "application/x-msterminal",
584
+ ".ts" => "video/mp2t",
585
+ ".tsv" => "text/tab-separated-values",
586
+ ".ttf" => "application/octet-stream",
587
+ ".twd" => "application/vnd.simtech-mindmapper",
588
+ ".txd" => "application/vnd.genomatix.tuxedo",
589
+ ".txf" => "application/vnd.mobius.txf",
590
+ ".txt" => "text/plain",
591
+ ".ufd" => "application/vnd.ufdl",
592
+ ".umj" => "application/vnd.umajin",
593
+ ".unityweb" => "application/vnd.unity",
594
+ ".uoml" => "application/vnd.uoml+xml",
595
+ ".uri" => "text/uri-list",
596
+ ".ustar" => "application/x-ustar",
597
+ ".utz" => "application/vnd.uiq.theme",
598
+ ".uu" => "text/x-uuencode",
599
+ ".vcd" => "application/x-cdlink",
600
+ ".vcf" => "text/x-vcard",
601
+ ".vcg" => "application/vnd.groove-vcard",
602
+ ".vcs" => "text/x-vcalendar",
603
+ ".vcx" => "application/vnd.vcx",
604
+ ".vis" => "application/vnd.visionary",
605
+ ".viv" => "video/vnd.vivo",
606
+ ".vrml" => "model/vrml",
607
+ ".vsd" => "application/vnd.visio",
608
+ ".vsf" => "application/vnd.vsf",
609
+ ".vtt" => "text/vtt",
610
+ ".vtu" => "model/vnd.vtu",
611
+ ".vxml" => "application/voicexml+xml",
612
+ ".war" => "application/java-archive",
613
+ ".wasm" => "application/wasm",
614
+ ".wav" => "audio/x-wav",
615
+ ".wax" => "audio/x-ms-wax",
616
+ ".wbmp" => "image/vnd.wap.wbmp",
617
+ ".wbs" => "application/vnd.criticaltools.wbs+xml",
618
+ ".wbxml" => "application/vnd.wap.wbxml",
619
+ ".webm" => "video/webm",
620
+ ".wm" => "video/x-ms-wm",
621
+ ".wma" => "audio/x-ms-wma",
622
+ ".wmd" => "application/x-ms-wmd",
623
+ ".wmf" => "application/x-msmetafile",
624
+ ".wml" => "text/vnd.wap.wml",
625
+ ".wmlc" => "application/vnd.wap.wmlc",
626
+ ".wmls" => "text/vnd.wap.wmlscript",
627
+ ".wmlsc" => "application/vnd.wap.wmlscriptc",
628
+ ".wmv" => "video/x-ms-wmv",
629
+ ".wmx" => "video/x-ms-wmx",
630
+ ".wmz" => "application/x-ms-wmz",
631
+ ".woff" => "application/font-woff",
632
+ ".woff2" => "application/font-woff2",
633
+ ".wpd" => "application/vnd.wordperfect",
634
+ ".wpl" => "application/vnd.ms-wpl",
635
+ ".wps" => "application/vnd.ms-works",
636
+ ".wqd" => "application/vnd.wqd",
637
+ ".wri" => "application/x-mswrite",
638
+ ".wrl" => "model/vrml",
639
+ ".wsdl" => "application/wsdl+xml",
640
+ ".wspolicy" => "application/wspolicy+xml",
641
+ ".wtb" => "application/vnd.webturbo",
642
+ ".wvx" => "video/x-ms-wvx",
643
+ ".x3d" => "application/vnd.hzn-3d-crossword",
644
+ ".xar" => "application/vnd.xara",
645
+ ".xbd" => "application/vnd.fujixerox.docuworks.binder",
646
+ ".xbm" => "image/x-xbitmap",
647
+ ".xdm" => "application/vnd.syncml.dm+xml",
648
+ ".xdp" => "application/vnd.adobe.xdp+xml",
649
+ ".xdw" => "application/vnd.fujixerox.docuworks",
650
+ ".xenc" => "application/xenc+xml",
651
+ ".xer" => "application/patch-ops-error+xml",
652
+ ".xfdf" => "application/vnd.adobe.xfdf",
653
+ ".xfdl" => "application/vnd.xfdl",
654
+ ".xhtml" => "application/xhtml+xml",
655
+ ".xif" => "image/vnd.xiff",
656
+ ".xla" => "application/vnd.ms-excel",
657
+ ".xlam" => "application/vnd.ms-excel.addin.macroEnabled.12",
658
+ ".xls" => "application/vnd.ms-excel",
659
+ ".xlsb" => "application/vnd.ms-excel.sheet.binary.macroEnabled.12",
660
+ ".xlsx" => "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
661
+ ".xlsm" => "application/vnd.ms-excel.sheet.macroEnabled.12",
662
+ ".xlt" => "application/vnd.ms-excel",
663
+ ".xltx" => "application/vnd.openxmlformats-officedocument.spreadsheetml.template",
664
+ ".xml" => "application/xml",
665
+ ".xo" => "application/vnd.olpc-sugar",
666
+ ".xop" => "application/xop+xml",
667
+ ".xpm" => "image/x-xpixmap",
668
+ ".xpr" => "application/vnd.is-xpr",
669
+ ".xps" => "application/vnd.ms-xpsdocument",
670
+ ".xpw" => "application/vnd.intercon.formnet",
671
+ ".xsl" => "application/xml",
672
+ ".xslt" => "application/xslt+xml",
673
+ ".xsm" => "application/vnd.syncml+xml",
674
+ ".xspf" => "application/xspf+xml",
675
+ ".xul" => "application/vnd.mozilla.xul+xml",
676
+ ".xwd" => "image/x-xwindowdump",
677
+ ".xyz" => "chemical/x-xyz",
678
+ ".yaml" => "text/yaml",
679
+ ".yml" => "text/yaml",
680
+ ".zaz" => "application/vnd.zzazz.deck+xml",
681
+ ".zip" => "application/zip",
682
+ ".zmm" => "application/vnd.handheld-entertainment+xml",
202
683
  }
203
684
  end
204
685
  end