481418 ResourceHandler sets last modified

This commit is contained in:
Greg Wilkins 2015-11-05 08:31:36 +11:00
parent 973d95c8bc
commit 8caef29126
1 changed files with 2 additions and 1 deletions

View File

@ -498,11 +498,12 @@ public class ResourceHandler extends HandlerWrapper
doResponseHeaders(response,resource,mime);
if (_etags)
baseRequest.getResponse().getHttpFields().put(HttpHeader.ETAG,etag);
if (last_modified>0)
response.setDateHeader(HttpHeader.LAST_MODIFIED.asString(),last_modified);
if(skipContentBody)
return;
// Send the content
OutputStream out =null;
try {out = response.getOutputStream();}