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