Skip to content

Commit

Permalink
package-manager: add application/x-tar-gz mime type
Browse files Browse the repository at this point in the history
Closes #21314

This allows the package manger to download tar.gz bitbucket urls.
  • Loading branch information
travisstaloch authored and andrewrk committed Sep 6, 2024
1 parent 3543f28 commit 204107c
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 @@ -1067,7 +1067,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"))
ascii.eqlIgnoreCase(mime_type, "application/tar+gzip") or
ascii.eqlIgnoreCase(mime_type, "application/x-tar-gz"))
{
break :ft .@"tar.gz";
}
Expand Down

0 comments on commit 204107c

Please sign in to comment.