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 2013/07/10 02:41:10 UTC

[Bug 55228] AbstractHttp11Processor overwrites Date header, even when set by application

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

--- Comment #1 from fern@alum.mit.edu <fe...@alum.mit.edu> ---
I opened this bug against Tomcat6 since that is what we're using, but this bug
exists on all Tomcat7, as well, and most likely Tomcat8.  I'm not sure how to
deal with that.



Looking at tomcat-embed-core-7.0.42.jar:
AbstractHttp11Processor.prepareResponse
line: 1458

// Add date header
headers.setValue("Date").setString(FastHttpDateFormat.getCurrentDate());


You see that it sets the Date header, not checking if it had been already set
by that application.  Should be able to easily wrap it with:

if ( headers.getValue("Date") == null ) {
  ...
}

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