Ticket #9054: wsgi.py.diff

File wsgi.py.diff, 684 bytes (added by Gruffudd Williams, 16 years ago)

Temporary fix

  • wsgi.py

     
    129129    def _load_post_and_files(self):
    130130        # Populates self._post and self._files
    131131        if self.method == 'POST':
    132             if self.environ.get('CONTENT_TYPE', '').startswith('multipart'):
     132            if self.environ.get('CONTENT_TYPE', '').startswith('multipart') and not self.environ.get('CONTENT_TYPE', '').startswith('multipart/related'):
    133133                self._raw_post_data = ''
    134134                try:
    135135                    self._post, self._files = self.parse_file_upload(self.META, self.environ['wsgi.input'])
Back to Top