mirror of
https://github.com/jetty/jetty.project.git
synced 2025-02-23 07:37:55 +00:00
392237 Fixed 3.0 port of chat servlet - removed old dispatch branch
This commit is contained in:
parent
18f7293efd
commit
5d53c7d960
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user