[Modify] Polish it
This commit is contained in:
parent
ef2f1d8137
commit
056f2c8ffc
@ -3015,7 +3015,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");
|
||||||
|
|
||||||
sendAsync (Opcode.Text, new MemoryStream (bytes), completed);
|
sendAsync (Opcode.Text, new MemoryStream (bytes), completed);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user