diff options
Diffstat (limited to 'ridljar/com/sun/star/lib/connections/websocket/WebsocketConnection.java')
-rw-r--r-- | ridljar/com/sun/star/lib/connections/websocket/WebsocketConnection.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ridljar/com/sun/star/lib/connections/websocket/WebsocketConnection.java b/ridljar/com/sun/star/lib/connections/websocket/WebsocketConnection.java index cdffa43faf6c..87a8604c7b7d 100644 --- a/ridljar/com/sun/star/lib/connections/websocket/WebsocketConnection.java +++ b/ridljar/com/sun/star/lib/connections/websocket/WebsocketConnection.java @@ -282,7 +282,7 @@ public class WebsocketConnection extends WebSocketClient implements XConnection, boolean hasType = false; int i; for (i = 0; i < prefixedMessageBytes.length - 1; i++) { - if (prefixedMessageBytes[i] == ':' && (prefixedMessageBytes[i+1] == ' ' || prefixedMessageBytes[i+1] == '\n')) { + if (prefixedMessageBytes[i] == ':' && prefixedMessageBytes[i+1] == ' ') { hasType = true; break; // The type ends with ": ", so if we find this sequence we found the end of our type } @@ -290,7 +290,7 @@ public class WebsocketConnection extends WebSocketClient implements XConnection, } if(!hasType) { - notifyListeners_error(new com.sun.star.uno.Exception(new ProtocolException(String.format("Received URP/WS message (%s) without a type specifier. Binary messages must be proceeded by 'urp: ' or 'urp:\\n'", message)))); + notifyListeners_error(new com.sun.star.uno.Exception(new ProtocolException(String.format("Received URP/WS message (%s) without a type specifier. Binary messages must be proceeded by 'urp: '", message)))); return; } |