We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5918edb commit 78ee224Copy full SHA for 78ee224
src/main/java/org/java_websocket/drafts/Draft_10.java
@@ -307,8 +307,7 @@ public Framedata translateSingleFrame(ByteBuffer buffer) throws IncompleteExcept
307
}
308
309
310
- if (payloadlength >= 0 && payloadlength <= 125) {
311
- } else {
+ if (!(payloadlength >= 0 && payloadlength <= 125)) {
312
if (optcode == Opcode.PING || optcode == Opcode.PONG || optcode == Opcode.CLOSING) {
313
throw new InvalidFrameException("more than 125 octets");
314
0 commit comments