mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Revert "Revert "Merge branch 'random-fixes' into 'master'""
This reverts commit f6f2fb0b89.
Only one of the included commit should have been reverted.
This commit is contained in:
parent
f6f2fb0b89
commit
e1c547cfdf
6 changed files with 51 additions and 8 deletions
|
|
@ -686,7 +686,7 @@ def get_mirror_service_urls(url):
|
|||
return urls
|
||||
|
||||
|
||||
def download_repo_index(url_str, etag=None, verify_fingerprint=True):
|
||||
def download_repo_index(url_str, etag=None, verify_fingerprint=True, timeout=600):
|
||||
"""Downloads and verifies index file, then returns its data.
|
||||
|
||||
Downloads the repository index from the given :param url_str and
|
||||
|
|
@ -710,7 +710,7 @@ def download_repo_index(url_str, etag=None, verify_fingerprint=True):
|
|||
fingerprint = query['fingerprint'][0]
|
||||
|
||||
url = urllib.parse.SplitResult(url.scheme, url.netloc, url.path + '/index-v1.jar', '', '')
|
||||
download, new_etag = net.http_get(url.geturl(), etag)
|
||||
download, new_etag = net.http_get(url.geturl(), etag, timeout)
|
||||
|
||||
if download is None:
|
||||
return None, new_etag
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue