You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/09/03 11:02:06 UTC

DO NOT REPLY [Bug 38895] Http headers with an underscore "_" change into hyphen "-"

https://issues.apache.org/bugzilla/show_bug.cgi?id=38895

--- Comment #5 from Joachim Wagner <jw...@computing.dcu.ie> 2010-09-03 05:02:02 EDT ---
General comment (without knowing tomcat): HTTP RFC 2616 defines HTTP header
field names as case-insensitive. Existing applications will break if suddenly
the raw headers are used and the problems may not surface in testing as your
test client probably uses the same casing as your server app.

http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2

My best guess why underscores are converted to hyphens by tomcat is that apache
httpd converts in the other direction (in order to generate valid environment
variable names for CGI programs).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org