Skip to content

Commit

Permalink
Package.Fetch: add another non-standard Content-Type
Browse files Browse the repository at this point in the history
For instance, the official download site for libvterm uses this MIME
type for tar.gz tarballs.
  • Loading branch information
mlugg authored and andrewrk committed Sep 13, 2024
1 parent 55250a9 commit 54611e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Package/Fetch.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,8 @@ fn unpackResource(
if (ascii.eqlIgnoreCase(mime_type, "application/gzip") or
ascii.eqlIgnoreCase(mime_type, "application/x-gzip") or
ascii.eqlIgnoreCase(mime_type, "application/tar+gzip") or
ascii.eqlIgnoreCase(mime_type, "application/x-tar-gz"))
ascii.eqlIgnoreCase(mime_type, "application/x-tar-gz") or
ascii.eqlIgnoreCase(mime_type, "application/x-gtar-compressed"))
{
break :ft .@"tar.gz";
}
Expand Down

0 comments on commit 54611e3

Please sign in to comment.