diff --git a/release_gitter.py b/release_gitter.py index 2a3f885..f6aad4d 100755 --- a/release_gitter.py +++ b/release_gitter.py @@ -250,7 +250,7 @@ class PackageAdapter: self._package = ZipFile(BytesIO(response.content)) elif content_type == "application/x-tar": self._package = TarFile(fileobj=response.raw) - elif content_type == "application/x-tar+gzip": + elif content_type in ("application/gzip", "application/x-tar+gzip"): self._package = TarFile.open(fileobj=BytesIO(response.content), mode="r:*") else: raise ValueError(f"Unknown or unsupported content type {content_type}") diff --git a/main_test.py b/release_gitter_test.py similarity index 100% rename from main_test.py rename to release_gitter_test.py