mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user