diff --git a/websocket-sharp/Net/Cookie.cs b/websocket-sharp/Net/Cookie.cs index f4673f39..0613eb09 100644 --- a/websocket-sharp/Net/Cookie.cs +++ b/websocket-sharp/Net/Cookie.cs @@ -291,7 +291,12 @@ namespace WebSocketSharp.Net } } - init (name, value, path ?? String.Empty, domain ?? String.Empty); + init ( + name, + value.Length > 0 ? value : "\"\"", + path ?? String.Empty, + domain ?? String.Empty + ); } #endregion