You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deleting Request data does not update Content-length header. #61687
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2013-03-20.04:17:49.603>created_at=<Date2013-03-19.20:25:50.901>labels= ['type-bug', 'library']
title='Deleting Request data does not update Content-length header.'updated_at=<Date2014-03-10.22:11:19.380>user='https://bugs.python.org/dwoz'
The patch to fix issue http://bugs.python.org/issue16464 neglects the deleter method of the Request.data property. This allows Request._data to get updated without removing the Content-length header.
Activity
dwoz commentedon Mar 19, 2013
The patch to fix issue http://bugs.python.org/issue16464 neglects the deleter method of the Request.data property. This allows Request._data to get updated without removing the Content-length header.
python-dev commentedon Mar 20, 2013
New changeset b1579eb4e1bc by R David Murray in branch 'default':
bpo-17485: Delete the Content-Length header if the data attribute is deleted.
http://hg.python.org/cpython/rev/b1579eb4e1bc
bitdancer commentedon Mar 20, 2013
Thanks, Daniel. I moved the test so that it would be run even if the network resource is not enabled.
python-dev commentedon Mar 10, 2014
New changeset e6d862886e5c by R David Murray in branch 'default':
whatsnew: urllib Request objects are now reusable.
http://hg.python.org/cpython/rev/e6d862886e5c