371903: modified patch for jetty-7

This commit is contained in:
Greg Wilkins 2012-02-27 18:45:19 +11:00
parent 265d35324a
commit 8e1b863deb
1 changed files with 2 additions and 3 deletions

View File

@ -287,10 +287,8 @@ public class Dispatcher implements RequestDispatcher
_contextHandler.handle(_path,baseRequest, (HttpServletRequest)request, (HttpServletResponse)response);
if (!request.isAsyncStarted())
{
if (!baseRequest.getAsyncContinuation().isAsyncStarted())
commitResponse(response,baseRequest);
}
}
}
finally
@ -308,6 +306,7 @@ public class Dispatcher implements RequestDispatcher
}
/* ------------------------------------------------------------ */
private void commitResponse(ServletResponse response, Request baseRequest) throws IOException
{
if (baseRequest.getResponse().isWriting())