[Modify] Polish it
This commit is contained in:
parent
a49dad8733
commit
cc196cf6ca
@ -2820,7 +2820,7 @@ namespace WebSocketSharp
|
|||||||
|
|
||||||
byte[] bytes;
|
byte[] bytes;
|
||||||
if (!data.TryGetUTF8EncodedBytes (out bytes))
|
if (!data.TryGetUTF8EncodedBytes (out bytes))
|
||||||
throw new ArgumentException ("It could not be UTF8 encoded.", "data");
|
throw new ArgumentException ("It could not be UTF-8-encoded.", "data");
|
||||||
|
|
||||||
send (Opcode.Text, new MemoryStream (bytes));
|
send (Opcode.Text, new MemoryStream (bytes));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user