##// END OF EJS Templates
pycurl: skip host verification to speed up curl a bit.
marcink -
r3929:f5cb74c0 default
parent child Browse files
Show More
@@ -128,6 +128,8 b' class CurlSession(object):'
128 curl.setopt(curl.TCP_NODELAY, True)
128 curl.setopt(curl.TCP_NODELAY, True)
129 curl.setopt(curl.PROTOCOLS, curl.PROTO_HTTP)
129 curl.setopt(curl.PROTOCOLS, curl.PROTO_HTTP)
130 curl.setopt(curl.USERAGENT, 'RhodeCode HTTP {}'.format(rhodecode.__version__))
130 curl.setopt(curl.USERAGENT, 'RhodeCode HTTP {}'.format(rhodecode.__version__))
131 curl.setopt(curl.SSL_VERIFYPEER, 0)
132 curl.setopt(curl.SSL_VERIFYHOST, 0)
131 self._curl = curl
133 self._curl = curl
132
134
133 def post(self, url, data, allow_redirects=False):
135 def post(self, url, data, allow_redirects=False):
General Comments 0
You need to be logged in to leave comments. Login now