disable cert check when running through proxy

This commit is contained in:
Damien Elmes 2012-12-22 09:20:54 +09:00
parent b2457811a2
commit cc9bbb2ab7

View file

@ -31,7 +31,8 @@ def httpCon():
assert 0
return httplib2.Http(
timeout=HTTP_TIMEOUT, ca_certs=certs,
proxy_info=HTTP_PROXY)
proxy_info=HTTP_PROXY,
disable_ssl_certificate_validation=not not HTTP_PROXY)
# Proxy handling
######################################################################