tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Boorshtein <mboorsht...@gmail.com>
Subject Re: Request headers created in valve don't make it to application
Date Wed, 01 Jun 2011 20:51:40 GMT
To quote one of my favorite tv shows....well there's your problem!  Thanks, I'll give this
a try. 

Marc

Sent from my iPad

On Jun 1, 2011, at 4:47 PM, Mark Thomas <markt@apache.org> wrote:

> 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
> 

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


Mime
View raw message