summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Flatz2018-06-18 15:18:16 +0200
committerDavid Flatz2018-06-18 15:19:48 +0200
commit3c94c414df60719fdcf8953531cc2eb7d417ed77 (patch)
tree37cf5490b385b400a20253f3f1286e6f75a5aa9e /tests
parent6b0c87e5fad800ce625ff9ee47e27a2affd965b8 (diff)
downloaditools-3c94c414df60719fdcf8953531cc2eb7d417ed77.tar.gz
itools-3c94c414df60719fdcf8953531cc2eb7d417ed77.tar.bz2
itools-3c94c414df60719fdcf8953531cc2eb7d417ed77.zip
urlencode keys of nested structures; this fixes illegal characters in urls
Diffstat (limited to 'tests')
-rw-r--r--tests/U_tests.json6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/U_tests.json b/tests/U_tests.json
index 591fdc9..e35ff9d 100644
--- a/tests/U_tests.json
+++ b/tests/U_tests.json
@@ -201,5 +201,11 @@
"args": ["app://settings"],
"exp": "app://settings",
"name": "U() do not add / for non-http url without path"
+ },
+
+ {
+ "args": ["/foo.html", {"<spam>": {"<spam>": "ham"}}],
+ "exp": "/foo.html?%3Cspam%3E%5B%3Cspam%3E%5D=ham",
+ "name": "U() urlencode keys of nested structures"
}
]