mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
Accepts generic application/x-compressed in package fetch
This commit is contained in:
parent
32e88251e4
commit
2e77956629
@ -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},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user