parent
a26ad6d7ea
commit
f768e2ed68
|
@ -691,7 +691,7 @@ public class ResourceService
|
||||||
putHeaders(response, content, Response.USE_KNOWN_CONTENT_LENGTH);
|
putHeaders(response, content, Response.USE_KNOWN_CONTENT_LENGTH);
|
||||||
|
|
||||||
// write the content asynchronously if supported
|
// write the content asynchronously if supported
|
||||||
if (request.isAsyncSupported() && content.getContentLengthValue() > response.getBufferSize())
|
if (request.isAsyncSupported())
|
||||||
{
|
{
|
||||||
final AsyncContext context = request.startAsync();
|
final AsyncContext context = request.startAsync();
|
||||||
context.setTimeout(0);
|
context.setTimeout(0);
|
||||||
|
|
Loading…
Reference in New Issue