WW-2512 DefaultHttpHeaders no longer attempts to generate an ETag if the model/target is null

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@631421 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jeromy Evans
2008-02-26 23:03:54 +00:00
parent 7e0a75ebe1
commit ecbdc6091a
@@ -96,7 +96,7 @@ public class DefaultHttpHeaders implements HttpHeaders {
if (lastModified != null) {
response.setDateHeader("Last-Modified", lastModified.getTime());
}
if (etag == null && !noETag) {
if (etag == null && !noETag && target != null) {
etag = String.valueOf(target.hashCode());
}
if (etag != null) {