[Modify] Polish it
This commit is contained in:
parent
e2dab38139
commit
5b08d5358e
@ -406,10 +406,7 @@ namespace WebSocketSharp.Net
|
|||||||
private static string urlDecode (string s, Encoding encoding)
|
private static string urlDecode (string s, Encoding encoding)
|
||||||
{
|
{
|
||||||
if (s == null)
|
if (s == null)
|
||||||
return s;
|
return null;
|
||||||
|
|
||||||
if (s.Length == 0)
|
|
||||||
return s;
|
|
||||||
|
|
||||||
if (s.IndexOfAny (new[] { '%', '+' }) == -1)
|
if (s.IndexOfAny (new[] { '%', '+' }) == -1)
|
||||||
return s;
|
return s;
|
||||||
|
Loading…
Reference in New Issue
Block a user