diff --git a/jetty-websocket/src/main/java/org/eclipse/jetty/websocket/WebSocketHandler.java b/jetty-websocket/src/main/java/org/eclipse/jetty/websocket/WebSocketHandler.java index d90780f5c3d..5e4bc38582f 100644 --- a/jetty-websocket/src/main/java/org/eclipse/jetty/websocket/WebSocketHandler.java +++ b/jetty-websocket/src/main/java/org/eclipse/jetty/websocket/WebSocketHandler.java @@ -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); }