383881 WebSocketHandler sets request as handled

This commit is contained in:
Greg Wilkins 2012-07-04 10:50:47 +02:00
parent a519ecc1fb
commit db8d5089e8
1 changed files with 3 additions and 0 deletions

View File

@ -51,7 +51,10 @@ public abstract class WebSocketHandler extends HandlerWrapper implements WebSock
public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
{
if (_webSocketFactory.acceptWebSocket(request,response) || response.isCommitted())
{
baseRequest.setHandled(true);
return;
}
super.handle(target,baseRequest,request,response);
}