diff options
author | Benjamin Peterson <benjamin@python.org> | 2019-09-04 03:21:30 -0700 |
---|---|---|
committer | Chris Dent <cdent@anticdent.org> | 2019-09-04 11:21:30 +0100 |
commit | 71336fdd0dd7a4f12c3bbe077d6ec047fd84f9a8 (patch) | |
tree | 5ffdc332572f61edea5c1b045a9745c519dbaea2 /paste | |
parent | a55bf98f51c57880e9c2cead4c01b5c23ce09839 (diff) | |
download | paste-git-71336fdd0dd7a4f12c3bbe077d6ec047fd84f9a8.tar.gz |
TestApp: Make unicode urls always work. (#33)
Passing a unicode url to get() always worked (assuming the url contained only ASCII), but it didn't work to post(), put(), or delete() if query parameters were included. This change fixes the latter cases.
Diffstat (limited to 'paste')
-rw-r--r-- | paste/fixture.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/paste/fixture.py b/paste/fixture.py index 969863c..4b88718 100644 --- a/paste/fixture.py +++ b/paste/fixture.py @@ -235,6 +235,7 @@ class TestApp(object): environ['CONTENT_TYPE'] = content_type elif params: environ.setdefault('CONTENT_TYPE', 'application/x-www-form-urlencoded') + url = str(url) if '?' in url: url, environ['QUERY_STRING'] = url.split('?', 1) else: |