summaryrefslogtreecommitdiffstats
path: root/library/http/http.tcl
diff options
context:
space:
mode:
authorhobbs <hobbs>1999-08-05 16:57:48 (GMT)
committerhobbs <hobbs>1999-08-05 16:57:48 (GMT)
commitd4cffe067f71e3feb8a87d0beff6b3258b563d0d (patch)
tree1a7bf3756e31d8bff25e83973436c141efe85269 /library/http/http.tcl
parentadd46ecf0156a1508ca9611339dff4b3d41023ef (diff)
downloadtcl-d4cffe067f71e3feb8a87d0beff6b3258b563d0d.zip
tcl-d4cffe067f71e3feb8a87d0beff6b3258b563d0d.tar.gz
tcl-d4cffe067f71e3feb8a87d0beff6b3258b563d0d.tar.bz2
1999-08-05 Jeff Hobbs <hobbs@scriptics.com>
* library/http2.1/http.tcl: Made use of "i" in init section not use global var and start at 0 (was 1). [Bug: 2502]
Diffstat (limited to 'library/http/http.tcl')
-rw-r--r--library/http/http.tcl5
1 files changed, 3 insertions, 2 deletions
diff --git a/library/http/http.tcl b/library/http/http.tcl
index bf06cc3..f448077 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.8 1999/07/20 00:11:52 hershey Exp $
+# RCS: @(#) $Id: http.tcl,v 1.9 1999/08/05 16:57:48 hobbs Exp $
package provide http 2.1 ;# This uses Tcl namespaces
@@ -27,7 +27,8 @@ namespace eval http {
variable formMap
set alphanumeric a-zA-Z0-9
- for {set i 1} {$i <= 256} {incr i} {
+ variable i 0
+ for {} {$i <= 256} {incr i} {
set c [format %c $i]
if {![string match \[$alphanumeric\] $c]} {
set formMap($c) %[format %.2x $i]