Merge branch 'jetty-9.4.x-5214-head-huge-static' of https://github.com/eclipse/jetty.project into jetty-9.4.x-5214-head-huge-static

This commit is contained in:
Greg Wilkins 2020-08-31 18:22:10 +02:00
commit a6b7f73019
1 changed files with 2 additions and 2 deletions

View File

@ -578,7 +578,7 @@ public class ResourceService
{
//Get jetty's Response impl
String mdlm = content.getLastModifiedValue();
if (mdlm != null && ifms.equals(mdlm))
if (ifms.equals(mdlm))
{
sendStatus(response, HttpServletResponse.SC_NOT_MODIFIED, content::getETagValue);
return false;
@ -764,7 +764,7 @@ public class ResourceService
// content-length header
//
putHeaders(response, content, Response.NO_CONTENT_LENGTH);
String mimetype = (content == null ? null : content.getContentTypeValue());
String mimetype = content.getContentTypeValue();
if (mimetype == null)
LOG.warn("Unknown mimetype for " + request.getRequestURI());
MultiPartOutputStream multi = new MultiPartOutputStream(out);