8297609: Add application/wasm MIME type for wasm file extension
Reviewed-by: jpai, michaelm
This commit is contained in:
parent
a71d91b96f
commit
914ef07fed
@ -258,8 +258,8 @@ image/webp: \
|
||||
file_extensions=.webp;
|
||||
|
||||
text/css: \
|
||||
description=CSS File;\
|
||||
file_extensions=.css;
|
||||
description=CSS File;\
|
||||
file_extensions=.css;
|
||||
|
||||
text/html: \
|
||||
description=HTML Document;\
|
||||
@ -267,8 +267,8 @@ text/html: \
|
||||
icon=html
|
||||
|
||||
text/javascript: \
|
||||
description=JavaScript File;\
|
||||
file_extensions=.js;
|
||||
description=JavaScript File;\
|
||||
file_extensions=.js;
|
||||
|
||||
text/plain: \
|
||||
description=Plain Text;\
|
||||
@ -289,8 +289,8 @@ text/csv: \
|
||||
file_extensions=.csv;
|
||||
|
||||
text/markdown: \
|
||||
description=Markdown File;\
|
||||
file_extensions=.md,.markdown
|
||||
description=Markdown File;\
|
||||
file_extensions=.md,.markdown
|
||||
|
||||
video/mp4: \
|
||||
description=MPEG-4 Video;\
|
||||
@ -353,7 +353,7 @@ application/vnd.oasis.opendocument.text: \
|
||||
file_extensions=.odt;
|
||||
|
||||
application/vnd.ms-excel: \
|
||||
description=Microsoft Excel File;\
|
||||
description=Microsoft Excel File;\
|
||||
file_extensions=.xls;
|
||||
|
||||
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet: \
|
||||
@ -395,3 +395,7 @@ application/bz2: \
|
||||
application/java-archive: \
|
||||
description=JAR File;\
|
||||
file_extensions=.jar;
|
||||
|
||||
application/wasm: \
|
||||
description=WebAssembly File;\
|
||||
file_extensions=.wasm;
|
||||
|
@ -259,8 +259,8 @@ image/webp: \
|
||||
file_extensions=.webp;
|
||||
|
||||
text/css: \
|
||||
description=CSS File;\
|
||||
file_extensions=.css;
|
||||
description=CSS File;\
|
||||
file_extensions=.css;
|
||||
|
||||
text/html: \
|
||||
description=HTML Document;\
|
||||
@ -290,8 +290,8 @@ text/csv: \
|
||||
file_extensions=.csv;
|
||||
|
||||
text/markdown: \
|
||||
description=Markdown File;\
|
||||
file_extensions=.md,.markdown
|
||||
description=Markdown File;\
|
||||
file_extensions=.md,.markdown
|
||||
|
||||
video/mp4: \
|
||||
description=MPEG-4 Video;\
|
||||
@ -387,4 +387,8 @@ application/bz2: \
|
||||
|
||||
application/java-archive: \
|
||||
description=JAR File;\
|
||||
file_extensions=.jar;
|
||||
file_extensions=.jar;
|
||||
|
||||
application/wasm: \
|
||||
description=WebAssembly File;\
|
||||
file_extensions=.wasm;
|
||||
|
@ -22,7 +22,7 @@
|
||||
*/
|
||||
|
||||
/* @test
|
||||
* @bug 4313887 8129632 8129633 8162624 8146215 8162745 8273655 8274171 8287237
|
||||
* @bug 4313887 8129632 8129633 8162624 8146215 8162745 8273655 8274171 8287237 8297609
|
||||
* @summary Unit test for probeContentType method
|
||||
* @library ../..
|
||||
* @build Basic SimpleFileTypeDetector
|
||||
@ -187,6 +187,7 @@ public class Basic {
|
||||
new ExType("xls", List.of("application/vnd.ms-excel")),
|
||||
new ExType("xlsx", List.of("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")),
|
||||
new ExType("7z", List.of("application/x-7z-compressed")),
|
||||
new ExType("wasm", List.of("application/wasm")),
|
||||
};
|
||||
failures += checkContentTypes(exTypes);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user