Skip to content

Commit 54611e3

Browse files
mluggandrewrk
authored andcommitted
Package.Fetch: add another non-standard Content-Type
For instance, the official download site for libvterm uses this MIME type for tar.gz tarballs.
1 parent 55250a9 commit 54611e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Package/Fetch.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,8 @@ fn unpackResource(
10681068
if (ascii.eqlIgnoreCase(mime_type, "application/gzip") or
10691069
ascii.eqlIgnoreCase(mime_type, "application/x-gzip") or
10701070
ascii.eqlIgnoreCase(mime_type, "application/tar+gzip") or
1071-
ascii.eqlIgnoreCase(mime_type, "application/x-tar-gz"))
1071+
ascii.eqlIgnoreCase(mime_type, "application/x-tar-gz") or
1072+
ascii.eqlIgnoreCase(mime_type, "application/x-gtar-compressed"))
10721073
{
10731074
break :ft .@"tar.gz";
10741075
}

0 commit comments

Comments
 (0)