Show More
@@ -179,10 +179,10 b' class httpconnection(keepalive.HTTPConne' | |||||
179 | return proxyres |
|
179 | return proxyres | |
180 | return keepalive.HTTPConnection.getresponse(self) |
|
180 | return keepalive.HTTPConnection.getresponse(self) | |
181 |
|
181 | |||
182 | # general transaction handler to support different ways to handle |
|
182 | # Large parts of this function have their origin from before Python 2.6 | |
183 | # HTTPS proxying before and after Python 2.6.3. |
|
183 | # and could potentially be removed. | |
184 | def _generic_start_transaction(handler, h, req): |
|
184 | def _generic_start_transaction(handler, h, req): | |
185 |
tunnel_host = |
|
185 | tunnel_host = req._tunnel_host | |
186 | if tunnel_host: |
|
186 | if tunnel_host: | |
187 | if tunnel_host[:7] not in ['http://', 'https:/']: |
|
187 | if tunnel_host[:7] not in ['http://', 'https:/']: | |
188 | tunnel_host = 'https://' + tunnel_host |
|
188 | tunnel_host = 'https://' + tunnel_host |
General Comments 0
You need to be logged in to leave comments.
Login now