mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 01:03:24 +00:00
httplib2 has issues validating certificate with python 2.7, disabling it
This commit is contained in:
@@ -22,7 +22,7 @@ def http():
|
|||||||
kwargs = {
|
kwargs = {
|
||||||
'ca_certs': pytest_httpbin.certs.where()
|
'ca_certs': pytest_httpbin.certs.where()
|
||||||
}
|
}
|
||||||
if sys.version_info[:2] == (3, 7):
|
if sys.version_info[:2] in [(2, 7), (3, 7)]:
|
||||||
kwargs['disable_ssl_certificate_validation'] = True
|
kwargs['disable_ssl_certificate_validation'] = True
|
||||||
return httplib2.Http(**kwargs)
|
return httplib2.Http(**kwargs)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user