Fixed #14594 -- Corrected r14435, which got the logic completely bass ackwards. Thanks to Mark Sundstrom for keeping me honest :-)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14436 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
32f650cfcc
commit
3e62e253d2
|
@ -148,9 +148,9 @@ class HttpRequest(object):
|
||||||
# specs, but see ticket #8259), so we handle TypeError as well.
|
# specs, but see ticket #8259), so we handle TypeError as well.
|
||||||
content_length = 0
|
content_length = 0
|
||||||
if content_length:
|
if content_length:
|
||||||
self._raw_post_data = self.read()
|
self._raw_post_data = self.read(content_length)
|
||||||
else:
|
else:
|
||||||
self._raw_post_data = self.read(int(content_length))
|
self._raw_post_data = self.read()
|
||||||
self._stream = StringIO(self._raw_post_data)
|
self._stream = StringIO(self._raw_post_data)
|
||||||
return self._raw_post_data
|
return self._raw_post_data
|
||||||
raw_post_data = property(_get_raw_post_data)
|
raw_post_data = property(_get_raw_post_data)
|
||||||
|
|
Loading…
Reference in New Issue