Ticket #15679: patch.diff

File patch.diff, 769 bytes (added by vkryachko, 4 years ago)
  • django/http/__init__.py

    diff --git a/django/http/__init__.py b/django/http/__init__.py
    index 2e4f371..774cdba 100644
    a b class HttpRequest(object): 
    262262        if self.method != 'POST':
    263263            self._post, self._files = QueryDict('', encoding=self._encoding), MultiValueDict()
    264264            return
    265         if self._read_started:
    266             self._mark_post_parse_error()
    267             return
    268265
    269266        if self.META.get('CONTENT_TYPE', '').startswith('multipart'):
     267            if self._read_started:
     268                self._mark_post_parse_error()
     269                return
     270
    270271            self._raw_post_data = ''
    271272            try:
    272273                self._post, self._files = self.parse_file_upload(self.META, self)
Back to Top