This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kachayev
Recipients kachayev, orsenthil, terry.reedy
Date 2012-11-17.22:29:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1353191353.7.0.0708032442008.issue16464@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-11-17 22:29:13kachayevsetrecipients: + kachayev, terry.reedy, orsenthil
2012-11-17 22:29:13kachayevsetmessageid: <1353191353.7.0.0708032442008.issue16464@psf.upfronthosting.co.za>
2012-11-17 22:29:13kachayevlinkissue16464 messages
2012-11-17 22:29:13kachayevcreate