Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7124521
D6900.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
676 B
Subscribers
None
D6900.diff
View Options
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
Details
Attached
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
Attached To
D6900: Fix typing issue
Event Timeline
Log In to Comment