1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-14 19:10:11 +01:00

Merge branch 'mr/verify_ca_certs_v2' into 'master'

makebuildserver: verify https all requests to avoid urllib3 warnings

See merge request !316
This commit is contained in:
Marcus Hoffmann 2017-08-28 15:05:24 +00:00
commit 36ef93520c

View File

@ -393,7 +393,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),