Commit 2e77956629

cipharius <cipharius@pm.me>
2023-11-30 16:49:58
Accepts generic application/x-compressed in package fetch
1 parent 32e8825
Changed files (1)
src
Package
src/Package/Fetch.zig
@@ -982,7 +982,9 @@ fn unpackResource(
             if (ascii.eqlIgnoreCase(mime_type, "application/zstd"))
                 break :ft .@"tar.zst";
 
-            if (!ascii.eqlIgnoreCase(mime_type, "application/octet-stream")) {
+            if (!ascii.eqlIgnoreCase(mime_type, "application/octet-stream") and
+                !ascii.eqlIgnoreCase(mime_type, "application/x-compressed"))
+            {
                 return f.fail(f.location_tok, try eb.printString(
                     "unrecognized 'Content-Type' header: '{s}'",
                     .{content_type},