[issue22708] httplib/http.client in method _tunnel used HTTP/1.0 CONNECT method

Demian Brecht report at bugs.python.org
Thu Apr 2 17:14:57 CEST 2015


Demian Brecht added the comment:

Thanks for the report and follow up Vova. I've come across this line and it puzzled me as well as to why it's hardcoded. Rather than the hardcoded approach in your patch, I've attached a patch that uses _http_vsn_str which is consistent with other areas of the library.

Additionally, I noticed that a failure will occur if the destination address contains characters outside of ASCII range, so I've added support for IDN.

I assume that the patch should be committed to tip and maintenance branches as both issues are bugs (there is IDN support elsewhere in the library).

----------
nosy: +demian.brecht
stage: resolved -> patch review
versions:  -Python 3.2, Python 3.3
Added file: http://bugs.python.org/file38808/issue22708.patch

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


More information about the Python-bugs-list mailing list