summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-10 10:04:13 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-10 10:04:13 (GMT)
commit4cc39eb0353b0c510d6e501b0ea911b913e31e29 (patch)
tree9fdaac41f7da6119e756d9b2c0a6dec6818919c2 /library
parent7cbe68b036c355fa147816e3c4fc90265cfab001 (diff)
parentb0d2108c0787bde409bec331a388113f6acb9450 (diff)
downloadtcl-4cc39eb0353b0c510d6e501b0ea911b913e31e29.zip
tcl-4cc39eb0353b0c510d6e501b0ea911b913e31e29.tar.gz
tcl-4cc39eb0353b0c510d6e501b0ea911b913e31e29.tar.bz2
merge trunk
Diffstat (limited to 'library')
-rw-r--r--library/http/http.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/http/http.tcl b/library/http/http.tcl
index 202525d..442cdc5 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
}