From cc9bbb2ab7ea76c0e526db6e0a5abba1d7f19eec Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 22 Dec 2012 09:20:54 +0900 Subject: [PATCH] disable cert check when running through proxy --- anki/sync.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/anki/sync.py b/anki/sync.py index dd63cb0fe..5d409a03e 100644 --- a/anki/sync.py +++ b/anki/sync.py @@ -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 ######################################################################