From 6cf44cfd1a6b849cbfabaf7d6b2279499e3b068e Mon Sep 17 00:00:00 2001 From: hobbs Date: Tue, 11 Jan 2000 22:09:10 +0000 Subject: * library/http2.1/http.tcl: trim value for $state(meta) key --- library/http/http.tcl | 4 ++-- library/http2.1/http.tcl | 4 ++-- library/http2.3/http.tcl | 4 ++-- 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 } -- cgit v0.12