Commits

Anonymous committed 0a907f4

Fixed #14594 -- Corrected r14435, which got the logic completely bass ackwards. Thanks to Mark Sundstrom for keeping me honest :-)

Comments (0)

Files changed (1)

django/http/__init__.py

                 # specs, but see ticket #8259), so we handle TypeError as well.
                 content_length = 0
             if content_length:
+                self._raw_post_data = self.read(content_length)
+            else:
                 self._raw_post_data = self.read()
-            else:
-                self._raw_post_data = self.read(int(content_length))
             self._stream = StringIO(self._raw_post_data)
         return self._raw_post_data
     raw_post_data = property(_get_raw_post_data)