Page MenuHomeSoftware Heritage

D6900.diff
No OneTemporary

D6900.diff

diff --git a/swh/loader/git/dumb.py b/swh/loader/git/dumb.py
--- a/swh/loader/git/dumb.py
+++ b/swh/loader/git/dumb.py
@@ -55,11 +55,11 @@
http_client = DumbHttpGitClient(repo_url)
url = http_client.get_url("info/refs?service=git-upload-pack")
response = http_client.get(url)
+ content_type = response.getheader("Content-Type")
return (
response.status in (200, 304,)
# header is not mandatory in protocol specification
- and response.content_type is None
- or not response.content_type.startswith("application/x-git-")
+ and (content_type is None or not content_type.startswith("application/x-git-"))
)

File Metadata

Mime Type
text/plain
Expires
Dec 21 2024, 12:51 PM (11 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3220211

Event Timeline