diff --git a/websocket-sharp/Net/CookieCollection.cs b/websocket-sharp/Net/CookieCollection.cs index 417b8fd0..fc9df33c 100644 --- a/websocket-sharp/Net/CookieCollection.cs +++ b/websocket-sharp/Net/CookieCollection.cs @@ -406,10 +406,7 @@ namespace WebSocketSharp.Net private static string urlDecode (string s, Encoding encoding) { if (s == null) - return s; - - if (s.Length == 0) - return s; + return null; if (s.IndexOfAny (new[] { '%', '+' }) == -1) return s;