New submission from nooB <nsharish....@gmail.com>:

In python 3.x http.client.HTTPConnection class, I saw few problems.

1) `_tunnel_headers` not initialized in the __init__ method. This causes 
`set_tunnel` method to raise `AttributeError` when called without `headers` 
keyword argument.

2) In `_tunnel` method, `self._tunnel_headers.iteritems()` has been used 
instead of `self._tunnel_headers.items()`, which caused AttributeError.

3) In `_tunnel` method, the CONNECT request is incomplete and hangs.
self.send(b'\r\n') is missing after sending the headers.

----------
messages: 126857
nosy: nooB
priority: normal
severity: normal
status: open
title: Errors in http.client.HTTPConnection class (python3)
versions: Python 3.1, Python 3.2, Python 3.3

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10983>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to