Skip to content

Commit 42a7247

Browse files
committed
Accepts generic application/x-compressed in package fetch
1 parent 39a966b commit 42a7247

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
@@ -978,7 +978,9 @@ fn unpackResource(
978978
if (ascii.eqlIgnoreCase(content_type, "application/zstd"))
979979
break :ft .@"tar.zst";
980980

981-
if (!ascii.eqlIgnoreCase(content_type, "application/octet-stream")) {
981+
if (!ascii.eqlIgnoreCase(content_type, "application/octet-stream") and
982+
!ascii.eqlIgnoreCase(content_type, "application/x-compressed"))
983+
{
982984
return f.fail(f.location_tok, try eb.printString(
983985
"unrecognized 'Content-Type' header: '{s}'",
984986
.{content_type},

0 commit comments

Comments
 (0)