Browse Source

Polish SPR-11963

pull/584/merge
Brian Clozel 11 years ago
parent
commit
6bcb48f95d
  1. 3
      spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/handler/AbstractHttpReceivingTransportHandler.java

3
spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/handler/AbstractHttpReceivingTransportHandler.java

@ -55,12 +55,11 @@ public abstract class AbstractHttpReceivingTransportHandler extends AbstractTran @@ -55,12 +55,11 @@ public abstract class AbstractHttpReceivingTransportHandler extends AbstractTran
messages = readMessages(request);
}
catch (IOException ex) {
logger.error("Failed to read message", ex);
if(ex.getClass().getName().contains("Mapping")) {
logger.error("Failed to read message", ex);
handleReadError(response, "Payload expected.", sockJsSession.getId());
}
else {
logger.error("Failed to read message", ex);
handleReadError(response, "Broken JSON encoding.", sockJsSession.getId());
}
return;

Loading…
Cancel
Save