Skip to content

Commit adf40d2

Browse files
tkiriyamajaikiran
authored andcommittedJul 14, 2022
8290149: java/nio/file/Files/probeContentType/Basic.java fails on Windows Server 2019/2022
Reviewed-by: jpai, lancea
1 parent 292d909 commit adf40d2

File tree

1 file changed

+1
-1
lines changed
  • test/jdk/java/nio/file/Files/probeContentType

1 file changed

+1
-1
lines changed
 

‎test/jdk/java/nio/file/Files/probeContentType/Basic.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public static void main(String[] args) throws IOException {
165165
new ExType("gz", List.of("application/gzip", "application/x-gzip")),
166166
new ExType("jar", List.of("application/java-archive", "application/x-java-archive", "application/jar")),
167167
new ExType("jpg", List.of("image/jpeg")),
168-
new ExType("js", List.of("text/javascript", "application/javascript")),
168+
new ExType("js", List.of("text/plain", "text/javascript", "application/javascript")),
169169
new ExType("json", List.of("application/json")),
170170
new ExType("markdown", List.of("text/markdown")),
171171
new ExType("md", List.of("text/markdown", "application/x-genesis-rom")),

0 commit comments

Comments
 (0)
Please sign in to comment.