summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-01-11 22:09:10 (GMT)
committerhobbs <hobbs>2000-01-11 22:09:10 (GMT)
commit6cf44cfd1a6b849cbfabaf7d6b2279499e3b068e (patch)
treed5b92547562a91a7d67bf0d0ebc8e2270af31436
parentdba4ade20672f9434ee5f1c871cc0e3454dc6fd0 (diff)
downloadtcl-6cf44cfd1a6b849cbfabaf7d6b2279499e3b068e.zip
tcl-6cf44cfd1a6b849cbfabaf7d6b2279499e3b068e.tar.gz
tcl-6cf44cfd1a6b849cbfabaf7d6b2279499e3b068e.tar.bz2
* library/http2.1/http.tcl: trim value for $state(meta) key
-rw-r--r--library/http/http.tcl4
-rw-r--r--library/http2.1/http.tcl4
-rw-r--r--library/http2.3/http.tcl4
3 files changed, 6 insertions, 6 deletions
diff --git a/library/http/http.tcl b/library/http/http.tcl
index 07d8e87..2b4cf43 100644
--- a/library/http/http.tcl
+++ b/library/http/http.tcl
@@ -9,7 +9,7 @@
# See the file "license.terms" for information on usage and
# redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: http.tcl,v 1.19 1999/12/04 06:16:00 hobbs Exp $
+# RCS: @(#) $Id: http.tcl,v 1.20 2000/01/11 22:09:10 hobbs Exp $
package provide http 2.2 ;# This uses Tcl namespaces
@@ -472,7 +472,7 @@ proc http::cleanup {token} {
set state(totalsize) [string trim $length]
}
if {[regexp -nocase {^([^:]+):(.+)$} $line x key value]} {
- lappend state(meta) $key $value
+ lappend state(meta) $key [string trim $value]
} elseif {[regexp ^HTTP $line]} {
set state(http) $line
}
diff --git a/library/http2.1/http.tcl b/library/http2.1/http.tcl
index 07d8e87..2b4cf43 100644
--- a/library/http2.1/http.tcl
+++ b/library/http2.1/http.tcl
@@ -9,7 +9,7 @@
# See the file "license.terms" for information on usage and
# redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: http.tcl,v 1.19 1999/12/04 06:16:00 hobbs Exp $
+# RCS: @(#) $Id: http.tcl,v 1.20 2000/01/11 22:09:10 hobbs Exp $
package provide http 2.2 ;# This uses Tcl namespaces
@@ -472,7 +472,7 @@ proc http::cleanup {token} {
set state(totalsize) [string trim $length]
}
if {[regexp -nocase {^([^:]+):(.+)$} $line x key value]} {
- lappend state(meta) $key $value
+ lappend state(meta) $key [string trim $value]
} elseif {[regexp ^HTTP $line]} {
set state(http) $line
}
diff --git a/library/http2.3/http.tcl b/library/http2.3/http.tcl
index 07d8e87..2b4cf43 100644
--- a/library/http2.3/http.tcl
+++ b/library/http2.3/http.tcl
@@ -9,7 +9,7 @@
# See the file "license.terms" for information on usage and
# redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: http.tcl,v 1.19 1999/12/04 06:16:00 hobbs Exp $
+# RCS: @(#) $Id: http.tcl,v 1.20 2000/01/11 22:09:10 hobbs Exp $
package provide http 2.2 ;# This uses Tcl namespaces
@@ -472,7 +472,7 @@ proc http::cleanup {token} {
set state(totalsize) [string trim $length]
}
if {[regexp -nocase {^([^:]+):(.+)$} $line x key value]} {
- lappend state(meta) $key $value
+ lappend state(meta) $key [string trim $value]
} elseif {[regexp ^HTTP $line]} {
set state(http) $line
}