Bug 15400

Summary: doTrace implementation cannot handle multiple header names
Product: Tomcat 4 Reporter: Stefan Eissing <stefan.eissing>
Component: Servlet & JSP APIAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 4.1.12   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Stefan Eissing 2002-12-16 14:35:29 UTC
When sending a request with multiple defined headers like:

Some-Header: first
Some-Header: second
Some-Header: third, fourth

Only the first header line is echoed back in the response.
Comment 1 Mark Thomas 2004-02-27 20:25:28 UTC
The implementation of doTrace() is in javax.servlet.http.HttpServlet and is 
outside of the control of the tomcat team.

The problem is that the implementation uses getHeader() rather than getHeaders
()

If this is a problem for you, your best bet is to override the doTrace() 
method in your servlet. As a starter the javax.servlet.http.HttpServlet 
impementation is available from 
http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-servletapi-
5/jsr154/src/share/javax/servlet/http/HttpServlet.java