diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/ResourceService.java b/jetty-server/src/main/java/org/eclipse/jetty/server/ResourceService.java index c7fd21f4e80..c3866cd5f01 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/ResourceService.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/ResourceService.java @@ -691,7 +691,7 @@ public class ResourceService putHeaders(response, content, Response.USE_KNOWN_CONTENT_LENGTH); // write the content asynchronously if supported - if (request.isAsyncSupported() && content.getContentLengthValue() > response.getBufferSize()) + if (request.isAsyncSupported()) { final AsyncContext context = request.startAsync(); context.setTimeout(0);