Fix typo in DefaultServlet (#988)
Fixes #952 Signed-off-by: Denis Bardadym <bardadymchik@gmail.com>
This commit is contained in:
parent
937a2d44f7
commit
8eb56edc8a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue