From 9cc7d455718456dd88daf829c29bec9527530b11 Mon Sep 17 00:00:00 2001 From: R David Murray Date: Wed, 20 Mar 2013 00:10:51 -0400 Subject: #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. --- Lib/urllib/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/urllib/request.py') diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index 90731cb059..8b3cdf9d2c 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) -- cgit v1.2.1