bneradt opened a new pull request, #14091:
URL: https://github.com/apache/trafficserver/pull/14091
ESI resolved $(HTTP_HEADER{name}) by an exact, case-sensitive match
against the request header name as the client spelled it. HTTP field
names are case-insensitive, and HTTP/2 and HTTP/3 clients always send
them in lowercase, so a template such as $(HTTP_HEADER{Sec-GPC})
silently expanded to an empty string for those clients even though
the header was present. The other ESI header-derived variables already
matched names case-insensitively.
This patch keys the HTTP_HEADER dictionary by the uppercased header
name and uppercases the requested name on lookup, matching how the
simple header variables are handled. A new urtest checks the variable
in three casings over both HTTP/1.1 and HTTP/2 clients, and the unit
test that asserted the old case-sensitive behavior is updated.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]