Ticket #2742: content_type_fix.diff
File content_type_fix.diff, 579 bytes (added by , 18 years ago) |
---|
-
wsgi.py
157 157 return self._raw_post_data 158 158 except AttributeError: 159 159 buf = StringIO() 160 content_length = int(self.environ ['CONTENT_LENGTH'])160 content_length = int(self.environ.get('CONTENT_LENGTH', 0)) 161 161 safe_copyfileobj(self.environ['wsgi.input'], buf, size=content_length) 162 162 self._raw_post_data = buf.getvalue() 163 163 buf.close()