summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2023-10-22 17:08:34 +0100
committerDavid Faure <faure@kde.org>2023-11-07 22:29:50 +0000
commitb2e32a52a5c17542b56c0122ecb9c768f77b673c (patch)
tree2f35ba0f62fcc28f9210900dcc2fdcf9f2dfb28f
parentebba3056209fa683f034a6373d2b43bb12314897 (diff)
Add application/wasm
WASM (WebAssembly) is a portable object format. This is an official IANA media type.
-rw-r--r--data/freedesktop.org.xml.in9
-rw-r--r--tests/mime-detection/add.wasmbin0 -> 32346 bytes
-rw-r--r--tests/mime-detection/list2
3 files changed, 11 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index a3d0953..88cf991 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -8337,6 +8337,15 @@ command to generate the output files.
<root-XML namespaceURI="http://www.w3.org/2005/sparql-results#" localName="sparql"/>
<glob pattern="*.srx"/>
</mime-type>
+ <mime-type type="application/wasm">
+ <comment>WASM binary module</comment>
+ <acronym>WASM</acronym>
+ <expanded-acronym>Web Assembly</expanded-acronym>
+ <glob pattern="*.wasm"/>
+ <magic>
+ <match type="string" value="\000asm" offset="0"/>
+ </magic>
+ </mime-type>
<mime-type type="application/x-openvpn-profile">
<comment>OpenVPN profile</comment>
<sub-class-of type="text/plain"/>
diff --git a/tests/mime-detection/add.wasm b/tests/mime-detection/add.wasm
new file mode 100644
index 0000000..b0e00c9
--- /dev/null
+++ b/tests/mime-detection/add.wasm
Binary files differ
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index bc9c628..5334dbd 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -834,6 +834,8 @@ boardingpass.pkpass application/vnd.apple.pkpass
# Generated with `cd /tmp && x86_64-w64-mingw32-clang -shared -fuse-ld=lld -Wl,--pdb=empty.pdb -x c /dev/null`
empty.pdb application/x-ms-pdb x
C.lnk application/x-ms-shortcut
+# WASM module https://rustwasm.github.io/wasm-bindgen/exbuild/add/53356255c2705a766855.module.wasm
+add.wasm application/wasm
hello.xdgapp application/vnd.flatpak
hello.flatpak application/vnd.flatpak