[Modify] Polish it
This commit is contained in:
parent
8e4fc80f7c
commit
07caf5c948
@ -866,12 +866,12 @@ namespace WebSocketSharp.Net
|
|||||||
|
|
||||||
internal static byte[] InternalUrlEncodeUnicodeToBytes (string s)
|
internal static byte[] InternalUrlEncodeUnicodeToBytes (string s)
|
||||||
{
|
{
|
||||||
using (var res = new MemoryStream ()) {
|
using (var buff = new MemoryStream ()) {
|
||||||
foreach (var c in s)
|
foreach (var c in s)
|
||||||
urlEncodeUnicode (c, res);
|
urlEncodeUnicode (c, buff);
|
||||||
|
|
||||||
res.Close ();
|
buff.Close ();
|
||||||
return res.ToArray ();
|
return buff.ToArray ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user