[Modify] Polish it
This commit is contained in:
parent
61f96f36a1
commit
ddb794b3b5
@ -1204,9 +1204,10 @@ namespace WebSocketSharp.Net
|
||||
|
||||
public static string UrlEncodeUnicode (string s)
|
||||
{
|
||||
return s != null && s.Length > 0
|
||||
? Encoding.ASCII.GetString (InternalUrlEncodeUnicodeToBytes (s))
|
||||
: s;
|
||||
if (s == null || s.Length == 0)
|
||||
return s;
|
||||
|
||||
return Encoding.ASCII.GetString (InternalUrlEncodeUnicodeToBytes (s));
|
||||
}
|
||||
|
||||
public static byte[] UrlEncodeUnicodeToBytes (string s)
|
||||
|
Loading…
Reference in New Issue
Block a user