[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions
sorin
report at bugs.python.org
Fri Jun 24 17:39:53 CEST 2011
New submission from sorin <sorin.sbarnea at gmail.com>:
It looks that Python 2.7 changes did induce some important bugs into httplib due to to implicit str-unicode encoding/decoding.
One clear example is that PyAMF library doesn't work with Python 2.7 because it is not able to generate binary data POST responses.
Please check http://dev.pyamf.org/ticket/823
(partial trackback, full in above bug)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 937, in endheaders
self._send_output(message_body)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 795, in _send_output
msg += message_body
----------
messages: 138953
nosy: sorin
priority: normal
severity: normal
status: open
title: Sending binary data with a POST request in httplib can cause Unicode exceptions
type: crash
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12398>
_______________________________________
More information about the Python-bugs-list
mailing list