diff options
Diffstat (limited to 'library/http')
-rw-r--r-- | library/http/http.tcl | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/library/http/http.tcl b/library/http/http.tcl index b0af22f..07d8e87 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.18 1999/11/19 23:10:08 hobbs Exp $ +# RCS: @(#) $Id: http.tcl,v 1.19 1999/12/04 06:16:00 hobbs Exp $ package provide http 2.2 ;# This uses Tcl namespaces @@ -448,9 +448,8 @@ proc http::cleanup {token} { } if {[string equal $state(state) "header"]} { if {[catch {gets $s line} n]} { - Finish $token $err - } - if {$n == 0} { + Finish $token $n + } elseif {$n == 0} { set state(state) body if {![regexp -nocase ^text $state(type)]} { # Turn off conversions for non-text data |