summaryrefslogtreecommitdiff
path: root/webob/request.py
diff options
context:
space:
mode:
authorSergey Schetinin <sergey@maluke.com>2011-09-23 22:58:44 +0300
committerSergey Schetinin <sergey@maluke.com>2011-09-23 22:58:44 +0300
commit7ea5ade9375d194f921ce7494d2f73cfd82f7266 (patch)
tree7077938b25eacfa034b4d7cc6c596927e26fa49a /webob/request.py
parent3fcceb90b9bd7a008765e2c018f9fc25b6c2be12 (diff)
downloadwebob-7ea5ade9375d194f921ce7494d2f73cfd82f7266.tar.gz
fix tests on windows; improve GET parsing; simpler cookie escaping
* decoding with mbcd + surrogateescape is not supported * parse_qsl is ridiculous on py3, merge into compat and simplify * on py3 we can still do map(_escape_char, v) on bytes if we change _escape_map key type
Diffstat (limited to 'webob/request.py')
-rw-r--r--webob/request.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/webob/request.py b/webob/request.py
index 1637261..5008a6c 100644
--- a/webob/request.py
+++ b/webob/request.py
@@ -634,13 +634,11 @@ class BaseRequest(object):
__name='GET'
)
else:
- decoded = parse_qsl_text(
+ decoded = list(parse_qsl_text(
source,
- keep_blank_values=True,
- strict_parsing=False,
encoding=self.charset,
errors=self.unicode_errors
- )
+ ))
vars = TrackableMultiDict(
decoded,
__tracker=self._update_get,
@@ -1448,4 +1446,4 @@ def _get_charset(content_type):
return charset_match.group(1).strip('"').strip()
else:
return 'UTF-8'
-
+