diff options
author | Nils Philippsen <nils@redhat.com> | 2015-08-19 16:23:10 +0200 |
---|---|---|
committer | Nils Philippsen <nils@redhat.com> | 2015-08-19 16:23:10 +0200 |
commit | a5ee861c01ec94096dea918d551be596f844291e (patch) | |
tree | 2bee7bc9c75409feaa2c84db2ca13213d7902fd7 /paste/wsgiwrappers.py | |
parent | 0a70450e3f57e6478b9244f42aeebea744fec77c (diff) | |
download | paste-a5ee861c01ec94096dea918d551be596f844291e.tar.gz |
Python 3: Don't mangle strangely encoded input
In Python 3, cgi.FieldStorage needs to know about encodings like
shiftjis in order to decode it properly (in Python 2 it's simply not
decoded at all).
Fixes tests.test_wsgiwrappers.test_wsgirequest_charset
Diffstat (limited to 'paste/wsgiwrappers.py')
-rw-r--r-- | paste/wsgiwrappers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/paste/wsgiwrappers.py b/paste/wsgiwrappers.py index 7b8f6de..674054f 100644 --- a/paste/wsgiwrappers.py +++ b/paste/wsgiwrappers.py @@ -199,7 +199,8 @@ class WSGIRequest(object): GET = property(GET, doc=GET.__doc__) def _POST(self): - return parse_formvars(self.environ, include_get_vars=False) + return parse_formvars(self.environ, include_get_vars=False, + encoding=self.charset, errors=self.errors) def POST(self): """Dictionary-like object representing the POST body. |