diff --git a/src/java.base/unix/classes/sun/net/www/content-types.properties b/src/java.base/unix/classes/sun/net/www/content-types.properties index 0dbece5902fc5..841bcdfac3326 100644 --- a/src/java.base/unix/classes/sun/net/www/content-types.properties +++ b/src/java.base/unix/classes/sun/net/www/content-types.properties @@ -399,3 +399,8 @@ application/java-archive: \ application/wasm: \ description=WebAssembly File;\ file_extensions=.wasm; + +application/sql: \ + description=Structured Query Language File;\ + file_extensions=.sql; + diff --git a/src/java.base/windows/classes/sun/net/www/content-types.properties b/src/java.base/windows/classes/sun/net/www/content-types.properties index dcd2e5843c04f..d7130ed51ff46 100644 --- a/src/java.base/windows/classes/sun/net/www/content-types.properties +++ b/src/java.base/windows/classes/sun/net/www/content-types.properties @@ -392,3 +392,7 @@ application/java-archive: \ application/wasm: \ description=WebAssembly File;\ file_extensions=.wasm; + +application/sql: \ + description=Structured Query Language File;\ + file_extensions=.sql; diff --git a/test/jdk/java/nio/file/Files/probeContentType/Basic.java b/test/jdk/java/nio/file/Files/probeContentType/Basic.java index 8bf86320b3f96..28abc47565df6 100644 --- a/test/jdk/java/nio/file/Files/probeContentType/Basic.java +++ b/test/jdk/java/nio/file/Files/probeContentType/Basic.java @@ -188,6 +188,7 @@ public static void main(String[] args) throws IOException { 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")), + new ExType("sql", List.of("application/sql")), }; failures += checkContentTypes(exTypes);