mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-11 09:03:21 +08:00
utils.make_HTTPS_handler now looks for the docopt version of --no-check-certificate
This commit is contained in:
parent
3dc8c8b19f
commit
2f0dd2fac9
@ -489,7 +489,7 @@ def make_HTTPS_handler(opts):
|
||||
context.set_default_verify_paths()
|
||||
|
||||
context.verify_mode = (ssl.CERT_NONE
|
||||
if opts.no_check_certificate
|
||||
if opts['--no-check-certificate']
|
||||
else ssl.CERT_REQUIRED)
|
||||
return compat_urllib_request.HTTPSHandler(context=context)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user