diff options
author | andreask <andreask> | 2012-03-07 18:50:48 (GMT) |
---|---|---|
committer | andreask <andreask> | 2012-03-07 18:50:48 (GMT) |
commit | d5ea885e1cb865eee05b60f99f61ac30e8a136c8 (patch) | |
tree | 8ebf06d8e8ee4bace8541c730b10ef78fd6c0736 /library | |
parent | df77e6c53973ff85f65a0a8d960101b47a82c9d6 (diff) | |
download | tcl-d5ea885e1cb865eee05b60f99f61ac30e8a136c8.zip tcl-d5ea885e1cb865eee05b60f99f61ac30e8a136c8.tar.gz tcl-d5ea885e1cb865eee05b60f99f61ac30e8a136c8.tar.bz2 |
http package. Fix Bug 3498327. Generate upper-case hexadecimal output for compliance with RFC 3986. Bumped version to 2.5.7.
Diffstat (limited to 'library')
-rw-r--r-- | library/http/http.tcl | 6 | ||||
-rw-r--r-- | library/http/pkgIndex.tcl | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/library/http/http.tcl b/library/http/http.tcl index bc8ae7f..ceef043 100644 --- a/library/http/http.tcl +++ b/library/http/http.tcl @@ -22,7 +22,7 @@ package require Tcl 8.4 # Keep this in sync with pkgIndex.tcl and with the install directories # in Makefiles -package provide http 2.5.6 +package provide http 2.5.7 namespace eval http { variable http @@ -44,11 +44,11 @@ namespace eval http { for {set i 0} {$i <= 256} {incr i} { set c [format %c $i] if {![string match {[-._~a-zA-Z0-9]} $c]} { - set map($c) %[format %.2x $i] + set map($c) %[format %.2X $i] } } # These are handled specially - set map(\n) %0d%0a + set map(\n) %0D%0A variable formMap [array get map] } init diff --git a/library/http/pkgIndex.tcl b/library/http/pkgIndex.tcl index 6c574ef..c5d2928 100644 --- a/library/http/pkgIndex.tcl +++ b/library/http/pkgIndex.tcl @@ -9,4 +9,4 @@ # full path name of this file's directory. if {![package vsatisfies [package provide Tcl] 8.4]} {return} -package ifneeded http 2.5.6 [list tclPkgSetup $dir http 2.5.6 {{http.tcl source {::http::config ::http::formatQuery ::http::geturl ::http::reset ::http::wait ::http::register ::http::unregister ::http::mapReply}}}] +package ifneeded http 2.5.7 [list tclPkgSetup $dir http 2.5.7 {{http.tcl source {::http::config ::http::formatQuery ::http::geturl ::http::reset ::http::wait ::http::register ::http::unregister ::http::mapReply}}}] |