Mercurial > hg > documentViewer
diff SrvTxtUtils.py @ 622:bc68ca0d2c0a
make annotationServerUrl work with protocol-relative URL (//).
author | casties |
---|---|
date | Fri, 12 Dec 2014 16:27:58 +0100 |
parents | a7b287122ce8 |
children | 6012fe93f78c |
line wrap: on
line diff
--- a/SrvTxtUtils.py Thu Dec 11 17:24:21 2014 +0100 +++ b/SrvTxtUtils.py Fri Dec 12 16:27:58 2014 +0100 @@ -280,6 +280,8 @@ for cnt in range(num_tries): try: logging.debug("getHttp(lib2)Data(#%s %ss) url=%s"%(cnt+1,timeout,url)) + # I would prefer at least disable_ssl_certificate_validation=insecure + # but python < 2.7.9 doesn't do SNI :-( h = httplib2.Http(cache=cache, timeout=float(timeout), disable_ssl_certificate_validation=True) if username: h.add_credentials(username, password)