mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-09 23:04:47 +03:00
Most minimal possible change
This commit is contained in:
parent
eaef0ab3ee
commit
847511ca23
|
@ -300,7 +300,7 @@ class Request(object):
|
||||||
|
|
||||||
if stream is None or media_type is None:
|
if stream is None or media_type is None:
|
||||||
if media_type and not is_form_media_type(media_type):
|
if media_type and not is_form_media_type(media_type):
|
||||||
empty_data = MultiValueDict()
|
empty_data = QueryDict('', encoding=self._request._encoding)
|
||||||
else:
|
else:
|
||||||
empty_data = {}
|
empty_data = {}
|
||||||
empty_files = MultiValueDict()
|
empty_files = MultiValueDict()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user