diff --git a/test-jetty-webapp/src/main/java/com/acme/ChatServlet.java b/test-jetty-webapp/src/main/java/com/acme/ChatServlet.java index 906ba3315db..11461815c35 100644 --- a/test-jetty-webapp/src/main/java/com/acme/ChatServlet.java +++ b/test-jetty-webapp/src/main/java/com/acme/ChatServlet.java @@ -164,13 +164,6 @@ public class ChatServlet extends HttpServlet response.setContentLength(bytes.length); response.getOutputStream().write(bytes); } - else if (request.getDispatcherType()==DispatcherType.ASYNC) - { - // Timeout so send empty response - response.setContentType("text/json;charset=utf-8"); - PrintWriter out=response.getWriter(); - out.print("{action:\"poll\"}"); - } else { AsyncContext async = request.startAsync();