Mantis - Resin
Viewing Issue Advanced Details
1143 minor always 05-23-06 09:44 05-30-06 21:14
ferg  
ferg  
high  
closed  
fixed  
none    
none 3.0.20  
0001143: proxy servlet returning incorrect headers
(rep by Anoop Achuthan)

 When using com.caucho.servlets.HttpProxyServlet, resin adds request
headers
to the response.
Please see the response headers below :

(Response Status) HTTP/1.1 200 OK
Accept image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, application/vnd.ms-excel,
application/msword, */*
Accept-Encoding gzip, deflate
Accept-Language en-us
Cache-Control max-age=5
Connection Keep-Alive
Content-Length 6
Content-Type text/plain; charset=utf-8
Cookie JSESSIONID=aw0aTmloQJPaVu8lFT
Date Tue, 23 May 2006 03:02:10 GMT
Expires Tue, 23 May 2006 03:02:15 GMT
Host foo.org
Last-Modified Thu, 11 May 2006 17:00:47 GMT
Server Resin/3.0.19
User-Agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET
CLR 1.1.4322; .NET CLR 2.0.50727)

How could I avoid this happening ?
I wrote a filter which uses removeHeader method of
com.caucho.server.http.HttpResponse
to eliminate unwanted headers. The method is working for certain headers
like
Pragma, Accept-Language, Host etc. Is there any other way to remove
other headers
which are unaffected by removeHeader method ?


Notes
(0001256)
ferg   
05-30-06 21:14   
server/1962