summaryrefslogtreecommitdiffstats
path: root/library/http/http.tcl
diff options
context:
space:
mode:
authorandreask <andreask>2012-03-07 18:50:48 (GMT)
committerandreask <andreask>2012-03-07 18:50:48 (GMT)
commitd5ea885e1cb865eee05b60f99f61ac30e8a136c8 (patch)
tree8ebf06d8e8ee4bace8541c730b10ef78fd6c0736 /library/http/http.tcl
parentdf77e6c53973ff85f65a0a8d960101b47a82c9d6 (diff)
downloadtcl-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/http/http.tcl')
-rw-r--r--library/http/http.tcl6
1 files changed, 3 insertions, 3 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