Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2024-05-13
12:27 • Ticket [e7c6360975] http 2.10 meta changes dict keys to lowercase status sti... artifact: 27683ba5f4 user: jan.nijtmans
2024-05-10
16:08 • New ticket [e7c6360975]. artifact: 08bd46cf90 user: emiliano

http 2.10 meta changes dict keys to lowercase

Opene7c6360975241171ecb8f95fdd3114688b9f9e45Created 3 years agoUpdated 3 years ago
Descriptionhtml2024-05-10 16:08:41

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.

jan.nijtmanswiki2024-05-13 12:27:37

Keith (@kjnash) can you comment on that?

Log in (anonymous is fine) to add a comment.