Skip to content

Commit

Permalink
Fixed #14594 -- Corrected r14435, which got the logic completely bass…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
freakboy3742 committed Nov 2, 2010
1 parent 32f650c commit 3e62e25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/http/__init__.py
Expand Up @@ -148,9 +148,9 @@ def _get_raw_post_data(self):
# 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)
Expand Down

0 comments on commit 3e62e25

Please sign in to comment.