tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 38895] Http headers with an underscore "_" change into hypen "-"
Date Thu, 07 Jan 2010 21:31:51 GMT

Tim Whittington <> changed:

           What    |Removed                     |Added
             Status|NEEDINFO                    |NEW

--- Comment #3 from Tim Whittington <> 2010-01-07 13:31:47
UTC ---
This is an explicit behaviour in the ISAPI Redirector controlled by a compile
time directive (USE_RAW_HEADERS) that exists in all versions of the redirector.

The redirector can be built in two ways:

1) By default, the headers are queries from IIS using the ALL_HTTP server
This results in all the headers being upper cased, the names being prepended
with HTTP_ and (undocumented it seems) all dashes being converted to
There is code in the redirector to adjust for all this, but unfortunately it
means that the case of header names is lost, and all underscores are converted
to dashes.

2) With USE_RAW_HEADERS defined, headers are retrieved in their raw state using
the ALL_RAW server variable.

I've confirmed that a build with USE_RAW_HEADERS defined fixes your problem,
but I'm not sure why the option is there in the first place (and why the
default is to not do this) - perhaps someone with a longer memory can comment.

This issue should probably be resolved as by design, but I'd like to see if
there's a good reason to not have USE_RAW_HEADERS as the default.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message