mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
makebuildserver: verify https all requests to avoid urllib3 warnings
According to http://docs.python-requests.org/en/master/user/advanced/#ca-certificates python-requests >= 2.4.0 will use the certifi provided certificates. We already recommend installing python3-certifi in the docs. On debian requests is patched to use the system trust store instead.
This commit is contained in:
parent
1955e2f153
commit
ae613ab277
@ -391,7 +391,7 @@ def update_cache(cachedir, cachefiles):
|
|||||||
|
|
||||||
if download:
|
if download:
|
||||||
r = requests.get(srcurl, headers=resume_header,
|
r = requests.get(srcurl, headers=resume_header,
|
||||||
stream=True, verify=False, allow_redirects=True)
|
stream=True, allow_redirects=True)
|
||||||
content_length = int(r.headers.get('content-length'))
|
content_length = int(r.headers.get('content-length'))
|
||||||
with open(local_filename, 'ab') as f:
|
with open(local_filename, 'ab') as f:
|
||||||
for chunk in progress.bar(r.iter_content(chunk_size=65536),
|
for chunk in progress.bar(r.iter_content(chunk_size=65536),
|
||||||
|
Loading…
Reference in New Issue
Block a user