diff options
| author | PREMANAND <prem1pre@gmail.com> | 2016-11-17 12:46:42 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-11-17 12:46:42 -0500 |
| commit | 371adc472a2a1f09923101e3c4fda60cdff96028 (patch) | |
| tree | 6f73f36f03d0a7fba324958b399889fbd5188137 /django/http/request.py | |
| parent | b28c6ca7631e13ea29490bf51a367ab10198c74c (diff) | |
Fixed #27156 -- Made changing HttpRequest.encoding clear GET.
Diffstat (limited to 'django/http/request.py')
| -rw-r--r-- | django/http/request.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/http/request.py b/django/http/request.py index 73858c5abd..83131d52c3 100644 --- a/django/http/request.py +++ b/django/http/request.py @@ -226,8 +226,8 @@ class HttpRequest(object): next access (so that it is decoded correctly). """ self._encoding = val - if hasattr(self, '_get'): - del self._get + if hasattr(self, 'GET'): + del self.GET if hasattr(self, '_post'): del self._post |
