Commit 4697b30ba0

Simon A. Nielsen Knights <levyelara@protonmail.com>
2023-05-13 09:19:36
add application/tar+gzip unblocking sr.ht packages
1 parent 018b743
Changed files (1)
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.