##// END OF EJS Templates
httpclient: fix calling convention violation
Matt Mackall -
r17836:98347af6 default
parent child Browse files
Show More
@@ -234,7 +234,9 b' class http2handler(urllib2.HTTPHandler, '
234 if req.get_full_url().startswith('https'):
234 if req.get_full_url().startswith('https'):
235 return self.https_open(req)
235 return self.https_open(req)
236 def makehttpcon(*args, **kwargs):
236 def makehttpcon(*args, **kwargs):
237 return HTTPConnection(*args, use_ssl=False, **kwargs)
237 k2 = dict(kwargs)
238 k2['use_ssl'] = False
239 return HTTPConnection(*args, **k2)
238 return self.do_open(makehttpcon, req, False)
240 return self.do_open(makehttpcon, req, False)
239
241
240 def https_open(self, req):
242 def https_open(self, req):
General Comments 0
You need to be logged in to leave comments. Login now