summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-07-25 16:13:03 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-07-25 16:13:03 (GMT)
commit34aa927a148445f61ce5e2cc2a3403fc2a681255 (patch)
treebb9c5c140c638429ffe9c1c8115bf9c589eab183 /library
parent7c4cabaaae8d1f5b351e2016d56308e2531cca9b (diff)
parente14cd07627b4ca6018dc89e9333418965ef0d56b (diff)
downloadtcl-34aa927a148445f61ce5e2cc2a3403fc2a681255.zip
tcl-34aa927a148445f61ce5e2cc2a3403fc2a681255.tar.gz
tcl-34aa927a148445f61ce5e2cc2a3403fc2a681255.tar.bz2
Merge 8.6
Diffstat (limited to 'library')
-rw-r--r--library/http/http.tcl18
1 files changed, 9 insertions, 9 deletions
diff --git a/library/http/http.tcl b/library/http/http.tcl
index 6e2ac4e..f9ec8ca 100644
--- a/library/http/http.tcl
+++ b/library/http/http.tcl
@@ -2698,18 +2698,18 @@ proc http::Event {sock token} {
if {$tmpHeader in {close keep-alive}} {
# The common cases, continue.
} elseif {[string first , $tmpHeader] == -1} {
- # Not a comma-separated list, not "close",
- # therefore "keep-alive".
- set tmpHeader keep-alive
+ # Not a comma-separated list, not "close",
+ # therefore "keep-alive".
+ set tmpHeader keep-alive
} else {
- set tmpHeader keep-alive
- set tmpCsl [split $tmpHeader ,]
- # Optional whitespace either side of separator.
- foreach el $tmpCsl {
- if {[string trim $el] eq {close}} {
+ set tmpHeader keep-alive
+ set tmpCsl [split $tmpHeader ,]
+ # Optional whitespace either side of separator.
+ foreach el $tmpCsl {
+ if {[string trim $el] eq {close}} {
set tmpHeader close
break
- }
+ }
}
}
set state(connection) $tmpHeader