We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1172a87 + 92a5d28 commit 848e515Copy full SHA for 848e515
tests/test_input_format.py
@@ -54,6 +54,10 @@ def test_urlencoded():
54
"""Ensure that urlencoded input format works as intended"""
55
test_data = BytesIO(b"foo=baz&foo=bar&name=John+Doe")
56
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"]}
61
62
63
def test_multipart():
0 commit comments