Ticket #14594: 14594.diff

File 14594.diff, 724 bytes (added by Mark Sundstrom, 14 years ago)

Patch to reverse the use of content_length applied in [14435]

  • django/http/__init__.py

     
    148148                # specs, but see ticket #8259), so we handle TypeError as well.
    149149                content_length = 0
    150150            if content_length:
     151                self._raw_post_data = self.read(content_length)
     152            else:
    151153                self._raw_post_data = self.read()
    152             else:
    153                 self._raw_post_data = self.read(int(content_length))
    154154            self._stream = StringIO(self._raw_post_data)
    155155        return self._raw_post_data
    156156    raw_post_data = property(_get_raw_post_data)
Back to Top