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.
Added file: http://bugs.python.org/file28015/issue16464.diff
Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list