Show More
@@ -233,7 +233,9 b' class http2handler(urllib2.HTTPHandler, ' | |||||
233 | def http_open(self, req): |
|
233 | def http_open(self, req): | |
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 | return self.do_open(HTTPConnection, req, False) |
|
236 | def makehttpcon(*args, **kwargs): | |
|
237 | return HTTPConnection(*args, use_ssl=False, **kwargs) | |||
|
238 | return self.do_open(makehttpcon, req, False) | |||
237 |
|
239 | |||
238 | def https_open(self, req): |
|
240 | def https_open(self, req): | |
239 | # req.get_full_url() does not contain credentials and we may |
|
241 | # req.get_full_url() does not contain credentials and we may |
General Comments 0
You need to be logged in to leave comments.
Login now