Overview
| Artifact ID: | 7a73d4ade785ec6c008477f4c2a08e65f47a81b54771357b6c6268e3e730b66e |
|---|---|
| Ticket: | 2927221fffffffffffffffffffffffffffffffff
provide helper function to get http headers |
| User & Date: | kjnash on 2022-09-10 11:57:24 |
Changes
- closedate changed to: "2459832.9982009"
- closer changed to: "kjnash"
- comment changed to:
The http package puts the response headers into the meta element of the state array exactly as they are received from the server. If a program needs to get a specific well-known header (i.e., Location) they must search the meta array in a case-insensitive manner rather than just accessing the keys. The requested feature is to provide a case-insensitive lookup into the meta array, either through a new helper function (::http::header) or by having http::meta take an optional key argument to return only the requested key instead of the entire array. (::http::meta token ?key?)
- icomment:
Fixed in commit [31732edc8a], branch http-bugfixes-2022H2. N.B. the list of header names and values is not a dict because the same header name can be sent more than once.
- login: "kjnash"
- mimetype: "text/x-fossil-plain"
- resolution changed to: "Fixed"
- severity changed to: "Minor"
- status changed to: "Closed"