diff options
| author | Baptiste Mispelon <bmispelon@gmail.com> | 2013-11-16 00:54:20 +0100 |
|---|---|---|
| committer | Baptiste Mispelon <bmispelon@gmail.com> | 2013-11-16 01:09:35 +0100 |
| commit | ceecc962ad8f6bbbc2b989aec53eee6c6cca04b9 (patch) | |
| tree | a0f1cf6de7185658e3ed13e6fdf27e1cb9d5c793 /django/http/request.py | |
| parent | d011714002d4d8d73440149f24aa86142caf886f (diff) | |
Fixed #21447 -- Restored code erroneously removed in 20472aa827669d2b83b74e521504e88e18d086a1.
Also added some tests for HttpRequest.__repr__.
Note that the added tests don't actually catch the accidental code
removal (see ticket) but they do cover a codepath that wasn't tested
before.
Thanks to Tom Christie for the report and the original patch.
Diffstat (limited to 'django/http/request.py')
| -rw-r--r-- | django/http/request.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/http/request.py b/django/http/request.py index 4d11fb21e0..1aefe6bf22 100644 --- a/django/http/request.py +++ b/django/http/request.py @@ -242,7 +242,7 @@ class HttpRequest(object): # Mark that an error occured. This allows self.__repr__ to # be explicit about it instead of simply representing an # empty POST - # self._mark_post_parse_error() + self._mark_post_parse_error() raise elif self.META.get('CONTENT_TYPE', '').startswith('application/x-www-form-urlencoded'): self._post, self._files = QueryDict(self.body, encoding=self._encoding), MultiValueDict() |
