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 attribute value, but header 
"Content-length" is not changed in this case.

Patch is attached.

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

keywords: +patch
nosy: +kachayev
Added file:

Python tracker <>
Python-bugs-list mailing list

Reply via email to