Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9336974
D6250.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
649 B
Subscribers
None
D6250.diff
View Options
diff --git a/swh/loader/package/utils.py b/swh/loader/package/utils.py
--- a/swh/loader/package/utils.py
+++ b/swh/loader/package/utils.py
@@ -79,7 +79,9 @@
params["headers"].update(extra_request_headers)
# so the connection does not hang indefinitely (read/connection timeout)
timeout = params.get("timeout", 60)
- response = requests.get(url, **params, timeout=timeout, stream=True)
+ response = requests.get(
+ url, **params, timeout=timeout, stream=True, allow_redirects=True
+ )
if response.status_code != 200:
raise ValueError("Fail to query '%s'. Reason: %s" % (url, response.status_code))
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jul 3 2025, 7:50 AM (10 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3228541
Attached To
D6250: wip: Allow download to follow redirection to fetch more tarballs
Event Timeline
Log In to Comment