summaryrefslogtreecommitdiffstats
path: root/Lib/urllib
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-03-20 04:10:51 (GMT)
committerR David Murray <rdmurray@bitdance.com>2013-03-20 04:10:51 (GMT)
commit9cc7d455718456dd88daf829c29bec9527530b11 (patch)
treecd69e5d356ffef3ae5ab61bcf50b6e4d75f9f3bf /Lib/urllib
parentd5a6e25470bb4f40c5bdd586641d7a4fce5fb64a (diff)
downloadcpython-9cc7d455718456dd88daf829c29bec9527530b11.zip
cpython-9cc7d455718456dd88daf829c29bec9527530b11.tar.gz
cpython-9cc7d455718456dd88daf829c29bec9527530b11.tar.bz2
#17485: Delete the Content-Length header if the data attribute is deleted.
This is a follow on to issue 16464. Original patch by Daniel Wozniak.
Diffstat (limited to 'Lib/urllib')
-rw-r--r--Lib/urllib/request.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py
index 90731cb..8b3cdf9 100644
--- a/Lib/urllib/request.py
+++ b/Lib/urllib/request.py
@@ -296,7 +296,7 @@ class Request:
@data.deleter
def data(self):
- self._data = None
+ self.data = None
def _parse(self):
self.type, rest = splittype(self.full_url)