summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2015-09-27 23:29:26 +0300
committerArtur Signell <artur@vaadin.com>2015-09-27 23:29:41 +0300
commitc08014ed2c6367503a690bf4a47c090f3a43d5de (patch)
tree9471c6b130016a1803e6af64963c293f70fc4780 /client
parent5e9209421ce92e16531299c8c4be5fdd412bb513 (diff)
downloadvaadin-framework-c08014ed2c6367503a690bf4a47c090f3a43d5de.tar.gz
vaadin-framework-c08014ed2c6367503a690bf4a47c090f3a43d5de.zip
Do not rely on content-type to detect errors (#19009)
Change-Id: I8be0a85d43033d99ac73724a3c4621e13ba3f32b
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/communication/XhrConnection.java8
1 files changed, 0 insertions, 8 deletions
diff --git a/client/src/com/vaadin/client/communication/XhrConnection.java b/client/src/com/vaadin/client/communication/XhrConnection.java
index 1de6fb15c8..ff8155259e 100644
--- a/client/src/com/vaadin/client/communication/XhrConnection.java
+++ b/client/src/com/vaadin/client/communication/XhrConnection.java
@@ -151,14 +151,6 @@ public class XhrConnection {
+ Util.round(Profiler.getRelativeTimeMillis()
- requestStartTime, 3) + "ms");
- String contentType = response.getHeader("Content-Type");
- if (contentType == null
- || !contentType.startsWith("application/json")) {
- getConnectionStateHandler().xhrInvalidContent(
- new XhrConnectionError(request, payload, response));
- return;
- }
-
// for(;;);["+ realJson +"]"
String responseText = response.getText();