Ticket #17187: 17187.patch

File 17187.patch, 763 bytes (added by Samuel Cormier-Iijima, 13 years ago)
  • django/http/__init__.py

    commit b29cb53646fafe2e5cf7a258bd80779c9656532a
    Author: Samuel Cormier-Iijima <sam@chide.it>
    Date:   Wed Nov 9 20:02:50 2011 -0500
    
        fix #17187: incompatibilities with Cherokee webserver's FastCGI handling
    
    diff --git a/django/http/__init__.py b/django/http/__init__.py
    index 68ac45d..6c1b8fa 100644
    a b class HttpRequest(object):  
    248248            if content_length:
    249249                self._raw_post_data = self.read(content_length)
    250250            else:
    251                 self._raw_post_data = self.read()
     251                self._raw_post_data = ''
    252252            self._stream = StringIO(self._raw_post_data)
    253253        return self._raw_post_data
    254254    raw_post_data = property(_get_raw_post_data)
Back to Top