diff options
| author | Simon A. Nielsen Knights <levyelara@protonmail.com> | 2023-05-13 09:19:36 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-05-13 12:11:23 -0700 |
| commit | 4697b30ba01668b4a9418aba1cdddf08c5036a11 (patch) | |
| tree | 2e41ea18977465e42e09cd7b6fc34fb62d50d3c1 /src | |
| parent | 018b743c7a83c2af5e5b6ba9aae1a4703e306f71 (diff) | |
| download | zig-4697b30ba01668b4a9418aba1cdddf08c5036a11.tar.gz zig-4697b30ba01668b4a9418aba1cdddf08c5036a11.zip | |
add application/tar+gzip unblocking sr.ht packages
Diffstat (limited to 'src')
| -rw-r--r-- | src/Package.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Package.zig b/src/Package.zig index ab4aaeb41f..db29fde77a 100644 --- a/src/Package.zig +++ b/src/Package.zig @@ -493,7 +493,8 @@ fn fetchAndUnpack( return report.fail(dep.url_tok, "missing Content-Type for '{s}'", .{uri.path}); if (ascii.eqlIgnoreCase(content_type, "application/gzip") or - ascii.eqlIgnoreCase(content_type, "application/x-gzip")) + ascii.eqlIgnoreCase(content_type, "application/x-gzip") or + ascii.eqlIgnoreCase(content_type, "application/tar+gzip")) { // I observed the gzip stream to read 1 byte at a time, so I am using a // buffered reader on the front of it. |
