nitcorn: test a url-encoded GET arg with a space
authorAlexis Laferrière <alexis.laf@xymus.net>
Wed, 12 Oct 2016 16:47:13 +0000 (12:47 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Wed, 12 Oct 2016 16:49:29 +0000 (12:49 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

tests/sav/test_nitcorn.res
tests/test_nitcorn.nit

index 6e77d2e..9ee42f3 100644 (file)
@@ -26,6 +26,11 @@ POST args: i:0123, s:asdf
 Method: GET, URI: /simple_answer, trailing: /
 Cookie: i:0123, s:asdf
 
+[Client] curl -s localhost:*****/simple_answer --get --data-urlencode 's=b b'
+[Response] Simple answer
+Method: GET, URI: /simple_answer, trailing: /
+GET args: s:b b
+
 [Client] curl -s localhost:*****/params_answer/0123/asdf
 [Response] Simple answer
 Method: GET, URI: /params_answer/0123/asdf, trailing: /
index 5f2ca1c..b7fcd90 100644 (file)
@@ -86,6 +86,7 @@ class ClientThread
                system "curl -s '{iface}/simple_answer?i=0123&s=asdf'"
                system "curl -s {iface}/simple_answer --data 'i=0123&s=asdf'"
                system "curl -s {iface}/simple_answer --cookie 'i=0123; s=asdf'"
+               system "curl -s {iface}/simple_answer --get --data-urlencode 's=b b'"
 
                system "curl -s {iface}/params_answer/0123/asdf"
                system "curl -s {iface}/params_answer/0123/"