allow unsafe ssl context for downloads

Signed-off-by: vladmandic <mandic00@live.com>
This commit is contained in:
vladmandic
2026-01-19 17:36:01 +01:00
parent ae357a5e49
commit 8cf27dffdb
7 changed files with 38 additions and 17 deletions
-1
View File
@@ -40,7 +40,6 @@ def download_urllib(args):
fn = ''
req = urllib.request.Request(args.url, headers=headers)
res = urllib.request.urlopen(req)
res.getheader('content-length')
content_length = int(res.getheader('content-length') or 0)
fn = get_filename(args, res)
print(f'downloading: url={args.url} file={fn} size={content_length if content_length > 0 else "unknown"} lib=urllib block={args.block}')