commit 54611e32d76e97c1f3145f4a14221668e70d52fb (tree)
parent 55250a9370ae247d52d9d78033880451cb1e9add
Author: mlugg <mlugg@mlugg.co.uk>
Date: Thu, 12 Sep 2024 22:32:13 +0100
Package.Fetch: add another non-standard Content-Type
For instance, the official download site for libvterm uses this MIME
type for tar.gz tarballs.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/Package/Fetch.zig b/src/Package/Fetch.zig
@@ -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";
}