Skip to content

Commit 848e515

Browse files
authored
Merge pull request #844 from DaveTrost/issues/719
test how falcon encodes query parameters list
2 parents 1172a87 + 92a5d28 commit 848e515

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_input_format.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ def test_urlencoded():
5454
"""Ensure that urlencoded input format works as intended"""
5555
test_data = BytesIO(b"foo=baz&foo=bar&name=John+Doe")
5656
assert hug.input_format.urlencoded(test_data) == {"name": "John Doe", "foo": ["baz", "bar"]}
57+
test_data = BytesIO(b"foo=baz,bar&name=John+Doe")
58+
assert hug.input_format.urlencoded(test_data) == {"name": "John Doe", "foo": ["baz", "bar"]}
59+
test_data = BytesIO(b"foo=baz,&name=John+Doe")
60+
assert hug.input_format.urlencoded(test_data) == {"name": "John Doe", "foo": ["baz"]}
5761

5862

5963
def test_multipart():

0 commit comments

Comments
 (0)