ba90b750 by Ean Schuessler

Disable proxying on COMET responses

1 parent f3c195cf
...@@ -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();
......