Tcl Source Code

View Ticket
Login
Ticket UUID: e7c6360975241171ecb8f95fdd3114688b9f9e45
Title: http 2.10 meta changes dict keys to lowercase
Type: Bug Created on: 2024-05-10 16:08:41
Submitter: emiliano Assigned to: nobody
Subsystem: 81. Bundled Packages Severity: Severe
Priority: 5 Medium Last modified: 2024-05-13 12:27:37
Status: Open Closed by: nobody
Resolution: None Closed on:
Version:
Description:

Package http from trunk breaks scripts by lowercasing the meta dictionary keys

$ cat httperr.tcl 
package require http
set tok [http::geturl http://tkchat.tcl.tk/current.html]
puts [dict keys [http::meta $tok]]; http::cleanup $tok
$ tclsh8.6 httperr.tcl 
Date Server Connection Content-Type Content-Length X-LOLCATZ Cache-Control X-BridgeNames
$ tclsh9.0 httperr.tcl 
date server connection content-type content-length x-lolcatz cache-control x-bridgenames
While http headers are case insensitive, this breaks scripts using the meta information as a Tcl dictionary since the later is not case insensitive.

User Comments:
jan.nijtmans added on 2024-05-13 12:27:37:

Keith (@kjnash) can you comment on that?