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-bridgenamesWhile 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.