mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-03-26 12:54:27 +03:00
Merge pull request #1483 from dn0/querydict-bug
Fixed encoding parameter in QueryDict
This commit is contained in:
commit
c02c5c84fe
|
@ -346,7 +346,7 @@ class Request(object):
|
|||
media_type = self.content_type
|
||||
|
||||
if stream is None or media_type is None:
|
||||
empty_data = QueryDict('', self._request._encoding)
|
||||
empty_data = QueryDict('', encoding=self._request._encoding)
|
||||
empty_files = MultiValueDict()
|
||||
return (empty_data, empty_files)
|
||||
|
||||
|
@ -362,7 +362,7 @@ class Request(object):
|
|||
# re-raise. Ensures we don't simply repeat the error when
|
||||
# attempting to render the browsable renderer response, or when
|
||||
# logging the request or similar.
|
||||
self._data = QueryDict('', self._request._encoding)
|
||||
self._data = QueryDict('', encoding=self._request._encoding)
|
||||
self._files = MultiValueDict()
|
||||
raise
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user