diff options
author | oehhar <harald.oehlmann@elmicron.de> | 2020-09-29 08:15:32 (GMT) |
---|---|---|
committer | oehhar <harald.oehlmann@elmicron.de> | 2020-09-29 08:15:32 (GMT) |
commit | 43e27f10a51ad6b206f06c50ea0cd4653bba694a (patch) | |
tree | 0b0cdf09f3f9ef51aa78d2bd02005b7e2d5fde0b /tests | |
parent | 38b30033c88080b592fdbc043f295bc9b4e97b5d (diff) | |
download | tcl-43e27f10a51ad6b206f06c50ea0cd4653bba694a.zip tcl-43e27f10a51ad6b206f06c50ea0cd4653bba694a.tar.gz tcl-43e27f10a51ad6b206f06c50ea0cd4653bba694a.tar.bz2 |
Ticket [0063cbcada]: check http::geturl -headers parameter to be a dict.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/http.test | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/http.test b/tests/http.test index 636a651..bd776c6 100644 --- a/tests/http.test +++ b/tests/http.test @@ -448,6 +448,12 @@ test http-3.33 {http::geturl application/xml is text} -body { } -cleanup { catch { http::cleanup $token } } -result {test 4660 /test} +test http-3.34 {http::geturl -headers not a dict} -returnCodes error -body { + http::geturl http://test/t -headers NoDict +} -result {Bad value for -headers (NoDict), must be list} +test http-3.2 {http::geturl} -returnCodes error -body { + http::geturl http:junk +} -result {Unsupported URL: http:junk} test http-4.1 {http::Event} -body { set token [http::geturl $url -keepalive 0] |