diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-01-09 14:07:08 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-01-09 14:07:08 (GMT) |
commit | 8f2f7117fc58a586d63160ce0df15bc7112fa169 (patch) | |
tree | e45a1ab8d48a60009a076a8c0028bfa382bf2ac5 /library/http | |
parent | 24b681cb7a18f81e241184bbed203e9a3e53012b (diff) | |
parent | 34d58962056254ecc03fb124fbdff80283aa43ae (diff) | |
download | tcl-8f2f7117fc58a586d63160ce0df15bc7112fa169.zip tcl-8f2f7117fc58a586d63160ce0df15bc7112fa169.tar.gz tcl-8f2f7117fc58a586d63160ce0df15bc7112fa169.tar.bz2 |
[Bug 3599395]: http assumes status line is a proper tcl list.
Diffstat (limited to 'library/http')
-rw-r--r-- | library/http/http.tcl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/http/http.tcl b/library/http/http.tcl index cb221a3..01bf772 100644 --- a/library/http/http.tcl +++ b/library/http/http.tcl @@ -981,7 +981,7 @@ proc http::Event {sock token} { } elseif {$n == 0} { # We have now read all headers # We ignore HTTP/1.1 100 Continue returns. RFC2616 sec 8.2.3 - if {$state(http) == "" || [lindex $state(http) 1] == 100} { + if {$state(http) == "" || ([regexp {^\S+\s(\d+)} $state(http) {} x] && $x == 100)} { return } |