[PATCH] MIME: Add application/wasm type

deso deso at posteo.net
Sun Dec 27 02:56:15 UTC 2020


 From 6a3bd185b20d60c6f145847b2dc162b09de6eab6 Mon Sep 17 00:00:00 2001
From: Daniel Mueller <deso at posteo.net>
Date: Sat, 26 Dec 2020 18:47:06 -0800
Subject: [PATCH] MIME: Add application/wasm type

.wasm files should be served with the application/wasm MIME type or some
features such as streamed loading and compilation may not be used by
browsers.
This change adjusts the MIME type configuration to include such a
setting.
---
  conf/mime.types | 1 +
  1 file changed, 1 insertion(+)

diff --git a/conf/mime.types b/conf/mime.types
index 296125..b53f7f 100644
--- a/conf/mime.types
+++ b/conf/mime.types
@@ -51,6 +51,7 @@ types {
 
application/vnd.openxmlformats-officedocument.wordprocessingml.document
                                                       docx;
      application/vnd.wap.wmlc                         wmlc;
+    application/wasm                                 wasm;
      application/x-7z-compressed                      7z;
      application/x-cocoa                              cco;
      application/x-java-archive-diff                  jardiff;
--
2.26.2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-MIME-Add-application-wasm-type.patch
Type: text/x-patch
Size: 1080 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20201226/8326d506/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x952DD6F8F34D8B8E.asc
Type: application/pgp-keys
Size: 3123 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20201226/8326d506/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20201226/8326d506/attachment-0002.bin>


More information about the nginx-devel mailing list