Alexey Kachayev added the comment:

This is special case for more "general" problem. When request is executed with 
HTTP client and data is not None, it calculates content length and adds special 
header to request. Then one can change request.data attribute value, but header 
"Content-length" is not changed in this case.

Patch is attached.

I implemented request.data as property and added method "remove_header" to deal 
problem. Test cases are also provided.

----------
keywords: +patch
nosy: +kachayev
Added file: http://bugs.python.org/file28015/issue16464.diff

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

Reply via email to