summaryrefslogtreecommitdiffstats
path: root/library/http/http.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-09 14:00:15 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-09 14:00:15 (GMT)
commitc509f61617b25dc0e12c07ca27b5b44bce13cb5f (patch)
treea6adbaeda6a7ce0e617e82eb7ce71cbd5e158b54 /library/http/http.tcl
parent77532b29d0c6c85dab5e98de6141a4f876114210 (diff)
downloadtcl-c509f61617b25dc0e12c07ca27b5b44bce13cb5f.zip
tcl-c509f61617b25dc0e12c07ca27b5b44bce13cb5f.tar.gz
tcl-c509f61617b25dc0e12c07ca27b5b44bce13cb5f.tar.bz2
[Bug 3599395]: http assumes status line is a proper tcl list.
Bump http package to 2.7.11.
Diffstat (limited to 'library/http/http.tcl')
-rw-r--r--library/http/http.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/http/http.tcl b/library/http/http.tcl
index fa0425d..6b82894 100644
--- a/library/http/http.tcl
+++ b/library/http/http.tcl
@@ -11,7 +11,7 @@
package require Tcl 8.4
# Keep this in sync with pkgIndex.tcl and with the install directories in
# Makefiles
-package provide http 2.7.10
+package provide http 2.7.11
namespace eval http {
# Allow resourcing to not clobber existing data
@@ -974,7 +974,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
}