8297609: Add application/wasm MIME type for wasm file extension

Reviewed-by: jpai, michaelm
This commit is contained in:
Michal Karm Babacek 2022-12-05 01:59:20 +00:00 committed by Jaikiran Pai
parent a71d91b96f
commit 914ef07fed
3 changed files with 22 additions and 13 deletions

View File

@ -395,3 +395,7 @@ application/bz2: \
application/java-archive: \ application/java-archive: \
description=JAR File;\ description=JAR File;\
file_extensions=.jar; file_extensions=.jar;
application/wasm: \
description=WebAssembly File;\
file_extensions=.wasm;

View File

@ -388,3 +388,7 @@ application/bz2: \
application/java-archive: \ application/java-archive: \
description=JAR File;\ description=JAR File;\
file_extensions=.jar; file_extensions=.jar;
application/wasm: \
description=WebAssembly File;\
file_extensions=.wasm;

View File

@ -22,7 +22,7 @@
*/ */
/* @test /* @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 * @summary Unit test for probeContentType method
* @library ../.. * @library ../..
* @build Basic SimpleFileTypeDetector * @build Basic SimpleFileTypeDetector
@ -187,6 +187,7 @@ public class Basic {
new ExType("xls", List.of("application/vnd.ms-excel")), new ExType("xls", List.of("application/vnd.ms-excel")),
new ExType("xlsx", List.of("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")), new ExType("xlsx", List.of("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")),
new ExType("7z", List.of("application/x-7z-compressed")), new ExType("7z", List.of("application/x-7z-compressed")),
new ExType("wasm", List.of("application/wasm")),
}; };
failures += checkContentTypes(exTypes); failures += checkContentTypes(exTypes);