From 81d56217858f5424acda1f95a60358ec2dc3744c Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 12 Aug 2023 15:43:28 -0700 Subject: [PATCH] Add missing parameter verify_ssl to the head request. --- voussoirkit/downloady.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voussoirkit/downloady.py b/voussoirkit/downloady.py index 73cefc6..813e340 100644 --- a/voussoirkit/downloady.py +++ b/voussoirkit/downloady.py @@ -309,7 +309,7 @@ def prepare_plan( if do_head: # I'm using a GET instead of an actual HEAD here because some servers respond # differently, even though they're not supposed to. - head = request('get', url, stream=True, headers=temp_headers, auth=auth) + head = request('get', url, stream=True, headers=temp_headers, auth=auth, verify_ssl=verify_ssl) remote_total_bytes = head.headers.get('content-length', None) remote_total_bytes = None if remote_total_bytes is None else int(remote_total_bytes) server_respects_range = (head.status_code == 206 and 'content-range' in head.headers)