Bug 1496049 [wpt PR 13332] - wptserve: Add the application/wasm type to constants.content_types., a=testonly
authorMs2ger <Ms2ger@gmail.com>
Tue, 09 Oct 2018 04:12:56 +0000
changeset 498637 9b8801e6847081c654913f71fb0bd75e18239173
parent 498636 4f03445cea8cab1335f4aeee6aacde6122ee680f
child 498638 a0fed4d8d7d675b7f0a07da253dbe231ddd3f2ff
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1496049, 13332
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1496049 [wpt PR 13332] - wptserve: Add the application/wasm type to constants.content_types., a=testonly Automatic update from web-platform-testswptserve: Reformat and sort constants.content_types. -- wptserve: Add the application/wasm type to constants.content_types. -- wpt-commits: 1297dd3321f76fe508f3ed8b0edebd052e62cfa5, 30e50d2d618d01328c8afd82da42b89e4f59a87f wpt-pr: 13332
testing/web-platform/tests/tools/wptserve/wptserve/constants.py
--- a/testing/web-platform/tests/tools/wptserve/wptserve/constants.py
+++ b/testing/web-platform/tests/tools/wptserve/wptserve/constants.py
@@ -1,34 +1,37 @@
 from . import utils
 
-content_types = utils.invert_dict({"text/html": ["htm", "html"],
-                                   "application/json": ["json"],
-                                   "application/xhtml+xml": ["xht", "xhtm", "xhtml"],
-                                   "application/xml": ["xml"],
-                                   "application/x-xpinstall": ["xpi"],
-                                   "text/javascript": ["js"],
-                                   "text/css": ["css"],
-                                   "text/plain": ["txt", "md"],
-                                   "image/svg+xml": ["svg"],
-                                   "image/gif": ["gif"],
-                                   "image/jpeg": ["jpg", "jpeg"],
-                                   "image/png": ["png"],
-                                   "image/bmp": ["bmp"],
-                                   "text/event-stream": ["event_stream"],
-                                   "text/cache-manifest": ["manifest"],
-                                   "video/mp4": ["mp4", "m4v"],
-                                   "audio/mp4": ["m4a"],
-                                   "audio/mpeg": ["mp3"],
-                                   "video/webm": ["webm"],
-                                   "audio/webm": ["weba"],
-                                   "video/ogg": ["ogg", "ogv"],
-                                   "audio/ogg": ["oga"],
-                                   "audio/x-wav": ["wav"],
-                                   "text/vtt": ["vtt"],})
+content_types = utils.invert_dict({
+    "application/json": ["json"],
+    "application/wasm": ["wasm"],
+    "application/xhtml+xml": ["xht", "xhtm", "xhtml"],
+    "application/xml": ["xml"],
+    "application/x-xpinstall": ["xpi"],
+    "audio/mp4": ["m4a"],
+    "audio/mpeg": ["mp3"],
+    "audio/ogg": ["oga"],
+    "audio/webm": ["weba"],
+    "audio/x-wav": ["wav"],
+    "image/bmp": ["bmp"],
+    "image/gif": ["gif"],
+    "image/jpeg": ["jpg", "jpeg"],
+    "image/png": ["png"],
+    "image/svg+xml": ["svg"],
+    "text/cache-manifest": ["manifest"],
+    "text/css": ["css"],
+    "text/event-stream": ["event_stream"],
+    "text/html": ["htm", "html"],
+    "text/javascript": ["js"],
+    "text/plain": ["txt", "md"],
+    "text/vtt": ["vtt"],
+    "video/mp4": ["mp4", "m4v"],
+    "video/ogg": ["ogg", "ogv"],
+    "video/webm": ["webm"],
+})
 
 response_codes = {
     100: ('Continue', 'Request received, please continue'),
     101: ('Switching Protocols',
           'Switching to new protocol; obey Upgrade header'),
 
     200: ('OK', 'Request fulfilled, document follows'),
     201: ('Created', 'Document created, URL follows'),