Fix typo in DefaultServlet (#988)

Fixes #952

Signed-off-by: Denis Bardadym <bardadymchik@gmail.com>
This commit is contained in:
Denis Bardadym 2016-10-14 06:18:16 +03:00 committed by Greg Wilkins
parent 937a2d44f7
commit 8eb56edc8a
1 changed files with 1 additions and 1 deletions

View File

@ -767,7 +767,7 @@ public class DefaultServlet extends HttpServlet implements ResourceFactory
if (ifnm!=null && etag!=null)
{
// Handle special case of exact match OR gzip exact match
if (etag.equals(ifnm) || ifnm.endsWith(ETAG_GZIP_QUOTE) && ifnm.indexOf(',')<0 && etag.equals(removeGzipFromETag(etag)))
if (etag.equals(ifnm) || ifnm.endsWith(ETAG_GZIP_QUOTE) && ifnm.indexOf(',')<0 && etag.equals(removeGzipFromETag(ifnm)))
{
response.setStatus(HttpServletResponse.SC_NOT_MODIFIED);
response.setHeader(HttpHeader.ETAG.asString(),ifnm);