tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Request headers created in valve don't make it to application
Date Wed, 01 Jun 2011 20:47:29 GMT
On 01/06/2011 16:16, Marc Boorshtein wrote:
> So for some reason the addHeader is not doing anything

I'm guessing you haven't looked at the source for this yet.

org.apache.catalina.connector#addHeader(String,String) is a NOOP. It was
removed for Tomcat 7.

You want:
request.getCoyoteRequest().getMimeHeaders().setValue(str).setString(str)

This will work for 6 and 7.

Mark



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


Mime
View raw message