summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
Diffstat (limited to 'library')
-rw-r--r--library/http/http.tcl6
1 files changed, 4 insertions, 2 deletions
diff --git a/library/http/http.tcl b/library/http/http.tcl
index cce1828..abef596 100644
--- a/library/http/http.tcl
+++ b/library/http/http.tcl
@@ -733,6 +733,7 @@ proc http::geturl {url args} {
-strict boolean
-timeout integer
-validate boolean
+ -headers list
}
set state(charset) $defaultCharset
set options {
@@ -747,8 +748,9 @@ proc http::geturl {url args} {
if {[regexp -- $pat $flag]} {
# Validate numbers
if {
- [info exists type($flag)] &&
- ![string is $type($flag) -strict $value]
+ ([info exists type($flag)] &&
+ ![string is $type($flag) -strict $value]) ||
+ $flag eq "-headers" && [llength $value] %2 != 0
} {
unset $token
return -code error \