Disable proxying on COMET responses
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -76,6 +76,7 @@ public class CometMessengerServlet extends HttpServlet implements CometProcessor | ... | @@ -76,6 +76,7 @@ public class CometMessengerServlet extends HttpServlet implements CometProcessor |
76 | HttpServletRequest request = event.getHttpServletRequest(); | 76 | HttpServletRequest request = event.getHttpServletRequest(); |
77 | HttpServletResponse response = event.getHttpServletResponse(); | 77 | HttpServletResponse response = event.getHttpServletResponse(); |
78 | response.setContentType("application/json"); | 78 | response.setContentType("application/json"); |
79 | response.setHeader("X-Accel-Buffering", "No"); | ||
79 | if (event.getEventType() == CometEvent.EventType.BEGIN) { | 80 | if (event.getEventType() == CometEvent.EventType.BEGIN) { |
80 | Debug.logInfo("Begin for session: " + request.getSession(true).getId(), module); | 81 | Debug.logInfo("Begin for session: " + request.getSession(true).getId(), module); |
81 | PrintWriter writer = response.getWriter(); | 82 | PrintWriter writer = response.getWriter(); | ... | ... |
-
Please register or sign in to post a comment