diff --git a/websocket-sharp/Net/Cookie.cs b/websocket-sharp/Net/Cookie.cs index f725a0c9..31d64137 100644 --- a/websocket-sharp/Net/Cookie.cs +++ b/websocket-sharp/Net/Cookie.cs @@ -802,7 +802,7 @@ namespace WebSocketSharp.Net buff.Append ("; Port"); } - if (!_comment.IsNullOrEmpty ()) + if (_comment != null) buff.AppendFormat ("; Comment={0}", HttpUtility.UrlEncode (_comment)); if (_commentUri != null) {