summaryrefslogtreecommitdiffstats
path: root/library/http2.1
diff options
context:
space:
mode:
authorhobbs <hobbs>1999-12-04 06:16:00 (GMT)
committerhobbs <hobbs>1999-12-04 06:16:00 (GMT)
commit0cbb9c47d7cd5a71ca1189ab216bf3ded3800278 (patch)
treebaa303c962880e8023e69caa63581c8873bb8c25 /library/http2.1
parent78a6d2f842a7ff7465cd0397481a93c78375096f (diff)
downloadtcl-0cbb9c47d7cd5a71ca1189ab216bf3ded3800278.zip
tcl-0cbb9c47d7cd5a71ca1189ab216bf3ded3800278.tar.gz
tcl-0cbb9c47d7cd5a71ca1189ab216bf3ded3800278.tar.bz2
* library/http2.1/http.tcl: fixed error handling in http::Event
[Bug: 3752]
Diffstat (limited to 'library/http2.1')
-rw-r--r--library/http2.1/http.tcl7
1 files changed, 3 insertions, 4 deletions
diff --git a/library/http2.1/http.tcl b/library/http2.1/http.tcl
index b0af22f..07d8e87 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.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