diff --git a/swh/loader/package/archive/tests/data/not_gzipped_tarball.tar.gz b/swh/loader/package/archive/tests/data/not_gzipped_tarball.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc$@ Tuple[str, Dict]: """Download a remote tarball from url, uncompresses and computes swh hashes on it. @@ -74,6 +75,8 @@ params = copy.deepcopy(DEFAULT_PARAMS) if auth is not None: params["auth"] = auth + if extra_request_headers is not None: + 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)