summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2000-01-11 22:09:09 (GMT)
committerhobbs <hobbs@noemail.net>2000-01-11 22:09:09 (GMT)
commit50beab5bec3aa02052c53a0083fa8a6bff716c5a (patch)
treed5b92547562a91a7d67bf0d0ebc8e2270af31436 /library
parent9a976f9912ff1d0ea722bba62275875986b6d013 (diff)
downloadtcl-50beab5bec3aa02052c53a0083fa8a6bff716c5a.zip
tcl-50beab5bec3aa02052c53a0083fa8a6bff716c5a.tar.gz
tcl-50beab5bec3aa02052c53a0083fa8a6bff716c5a.tar.bz2
* library/http2.1/http.tcl: trim value for $state(meta) key
FossilOrigin-Name: 0e47f1bf0351ad741587499610f89753a53b840f
Diffstat (limited to 'library')
-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
}