Add application/x-tar+xz as a known content type

This commit is contained in:
IamTheFij 2022-10-11 12:20:08 -07:00
parent e92283b4e9
commit e6a269af3d

View File

@ -280,6 +280,7 @@ class PackageAdapter:
elif content_type in ( elif content_type in (
"application/gzip", "application/gzip",
"application/x-tar+gzip", "application/x-tar+gzip",
"application/x-tar+xz",
"application/x-compressed-tar", "application/x-compressed-tar",
): ):
self._package = TarFile.open(fileobj=BytesIO(response.content), mode="r:*") self._package = TarFile.open(fileobj=BytesIO(response.content), mode="r:*")