mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-06 21:40:13 +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 media_type and not is_form_media_type(media_type):
|
||||
empty_data = MultiValueDict()
|
||||
empty_data = QueryDict('', encoding=self._request._encoding)
|
||||
else:
|
||||
empty_data = {}
|
||||
empty_files = MultiValueDict()
|
||||
|
|
Loading…
Reference in New Issue
Block a user