[issue7776] http.client.HTTPConnection tunneling is broken

Benjamin Peterson report at bugs.python.org
Mon Jan 27 04:35:30 CET 2014


Benjamin Peterson added the comment:

A few comments
- Your docstring for set_tunnel claims the method sends CONNECT when it in fact doesn't touch the network at all.
- Instead of 3 parallel arrays for tunnel information, it would be better to have a TunnelInfo class to contain host/port/headers (perhaps a namedtuple?).

----------
nosy: +benjamin.peterson

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7776>
_______________________________________


More information about the Python-bugs-list mailing list