summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/src/main/java/com/vaadin/server/communication/PushHandler.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/src/main/java/com/vaadin/server/communication/PushHandler.java b/server/src/main/java/com/vaadin/server/communication/PushHandler.java
index 08e0d798bc..6591596a47 100644
--- a/server/src/main/java/com/vaadin/server/communication/PushHandler.java
+++ b/server/src/main/java/com/vaadin/server/communication/PushHandler.java
@@ -41,6 +41,7 @@ import com.vaadin.server.VaadinServletRequest;
import com.vaadin.server.VaadinServletService;
import com.vaadin.server.VaadinSession;
import com.vaadin.shared.ApplicationConstants;
+import com.vaadin.shared.JsonConstants;
import com.vaadin.shared.communication.PushMode;
import com.vaadin.ui.UI;
@@ -467,6 +468,7 @@ public class PushHandler {
"sendNotificationAndDisconnect called for resource no longer in scope");
return;
}
+ resource.getResponse().setContentType(JsonConstants.JSON_CONTENT_TYPE);
resource.getResponse().getWriter().write(notificationJson);
resource.resume();
} catch (Exception e) {