Skip to content

Commit 2e77956

Browse files
committed
Accepts generic application/x-compressed in package fetch
1 parent 32e8825 commit 2e77956

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Package/Fetch.zig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,9 @@ fn unpackResource(
982982
if (ascii.eqlIgnoreCase(mime_type, "application/zstd"))
983983
break :ft .@"tar.zst";
984984

985-
if (!ascii.eqlIgnoreCase(mime_type, "application/octet-stream")) {
985+
if (!ascii.eqlIgnoreCase(mime_type, "application/octet-stream") and
986+
!ascii.eqlIgnoreCase(mime_type, "application/x-compressed"))
987+
{
986988
return f.fail(f.location_tok, try eb.printString(
987989
"unrecognized 'Content-Type' header: '{s}'",
988990
.{content_type},

0 commit comments

Comments
 (0)