# HG changeset patch # User Marcin Kuzminski # Date 2019-09-20 12:28:44 # Node ID f5cb74c020adf8a9b2a8498eb0c77804ef6efa0f # Parent 739550ba259f2ead41eb1942fad3af33ed393b86 pycurl: skip host verification to speed up curl a bit. diff --git a/rhodecode/lib/vcs/__init__.py b/rhodecode/lib/vcs/__init__.py --- a/rhodecode/lib/vcs/__init__.py +++ b/rhodecode/lib/vcs/__init__.py @@ -128,6 +128,8 @@ class CurlSession(object): curl.setopt(curl.TCP_NODELAY, True) curl.setopt(curl.PROTOCOLS, curl.PROTO_HTTP) curl.setopt(curl.USERAGENT, 'RhodeCode HTTP {}'.format(rhodecode.__version__)) + curl.setopt(curl.SSL_VERIFYPEER, 0) + curl.setopt(curl.SSL_VERIFYHOST, 0) self._curl = curl def post(self, url, data, allow_redirects=False):