summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2010-11-02 08:30:01 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2010-11-02 08:30:01 +0000
commit3e62e253d2dbe3cf5d79c5459fa8ca15f04824e1 (patch)
tree7e6b843f108493cc2e177f79495a8ad46fb25ccf
parent32f650cfccec3a07e6c1fd18e58284101dc83a2d (diff)
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
-rw-r--r--django/http/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/http/__init__.py b/django/http/__init__.py
index a585b3b6bb..b40558544e 100644
--- a/django/http/__init__.py
+++ b/django/http/__init__.py
@@ -148,9 +148,9 @@ class HttpRequest(object):
# specs, but see ticket #8259), so we handle TypeError as well.
content_length = 0
if content_length:
- self._raw_post_data = self.read()
+ self._raw_post_data = self.read(content_length)
else:
- self._raw_post_data = self.read(int(content_length))
+ self._raw_post_data = self.read()
self._stream = StringIO(self._raw_post_data)
return self._raw_post_data
raw_post_data = property(_get_raw_post_data)