srctree

cipharius parent 32e88251 2e779566
Accepts generic application/x-compressed in package fetch

inlinesplit
src/Package/Fetch.zig added: 4, removed: 2, total 2
@@ -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},