diff --git a/django/http/__init__.py b/django/http/__init__.py
index 2f3392f..c463bd4 100644
a
|
b
|
class HttpRequest(object):
|
311 | 311 | self._post_parse_error = True |
312 | 312 | |
313 | 313 | def _load_post_and_files(self): |
314 | | # Populates self._post and self._files |
| 314 | """ Populates self._post and self._files if the content-type is a form type """ |
315 | 315 | if self.method != 'POST': |
316 | 316 | self._post, self._files = QueryDict('', encoding=self._encoding), MultiValueDict() |
317 | 317 | return |
… |
… |
class HttpRequest(object):
|
319 | 319 | self._mark_post_parse_error() |
320 | 320 | return |
321 | 321 | |
322 | | if self.META.get('CONTENT_TYPE', '').startswith('multipart'): |
| 322 | if self.META.get('CONTENT_TYPE', '').startswith('multipart/form-data'): |
323 | 323 | if hasattr(self, '_body'): |
324 | 324 | # Use already read data |
325 | 325 | data = StringIO(self._body) |
… |
… |
class HttpRequest(object):
|
337 | 337 | # empty POST |
338 | 338 | self._mark_post_parse_error() |
339 | 339 | raise |
340 | | else: |
| 340 | elif self.META.get('CONTENT_TYPE', '').startswith('application/x-www-form-urlencoded'): |
341 | 341 | self._post, self._files = QueryDict(self.body, encoding=self._encoding), MultiValueDict() |
| 342 | else: |
| 343 | self._post, self._files = QueryDict(''), MultiValueDict() |
342 | 344 | |
343 | 345 | ## File-like and iterator interface. |
344 | 346 | ## |