This commit is contained in:
地平线
2015-09-10 13:33:01 +08:00
parent ff9a8a6bf3
commit 05c22c60a8

View File

@@ -98,6 +98,7 @@ public final class WebSocketPacket {
public byte[] getContent() {
if (this.type == PacketType.TEXT) return Utility.encodeUTF8(getPayload());
if (this.bytes == null) return new byte[0];
return this.bytes;
}