| ... | @@ -908,6 +908,7 @@ const FileType = enum { | ... | @@ -908,6 +908,7 @@ const FileType = enum { |
| 908 | if (ascii.endsWithIgnoreCase(file_path, ".tzst")) return .@"tar.zst"; | 908 | if (ascii.endsWithIgnoreCase(file_path, ".tzst")) return .@"tar.zst"; |
| 909 | if (ascii.endsWithIgnoreCase(file_path, ".tar.zst")) return .@"tar.zst"; | 909 | if (ascii.endsWithIgnoreCase(file_path, ".tar.zst")) return .@"tar.zst"; |
| 910 | if (ascii.endsWithIgnoreCase(file_path, ".zip")) return .zip; | 910 | if (ascii.endsWithIgnoreCase(file_path, ".zip")) return .zip; |
| | 911 | if (ascii.endsWithIgnoreCase(file_path, ".jar")) return .zip; |
| 911 | return null; | 912 | return null; |
| 912 | } | 913 | } |
| 913 | | 914 | |
| ... | @@ -1130,6 +1131,9 @@ fn unpackResource( | ... | @@ -1130,6 +1131,9 @@ fn unpackResource( |
| 1130 | if (ascii.eqlIgnoreCase(mime_type, "application/zip")) | 1131 | if (ascii.eqlIgnoreCase(mime_type, "application/zip")) |
| 1131 | break :ft .zip; | 1132 | break :ft .zip; |
| 1132 | | 1133 | |
| | 1134 | if (ascii.eqlIgnoreCase(mime_type, "application/java-archive")) |
| | 1135 | break :ft .zip; |
| | 1136 | |
| 1133 | if (!ascii.eqlIgnoreCase(mime_type, "application/octet-stream") and | 1137 | if (!ascii.eqlIgnoreCase(mime_type, "application/octet-stream") and |
| 1134 | !ascii.eqlIgnoreCase(mime_type, "application/x-compressed")) | 1138 | !ascii.eqlIgnoreCase(mime_type, "application/x-compressed")) |
| 1135 | { | 1139 | { |