From 28684d8bdfa88cc1d37a11e7ff556871fdd4e171 Mon Sep 17 00:00:00 2001 From: sta Date: Tue, 19 Feb 2019 21:49:03 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/Cookie.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/websocket-sharp/Net/Cookie.cs b/websocket-sharp/Net/Cookie.cs index 2bfc8f37..f74ecbef 100644 --- a/websocket-sharp/Net/Cookie.cs +++ b/websocket-sharp/Net/Cookie.cs @@ -108,7 +108,6 @@ namespace WebSocketSharp.Net _expires = DateTime.MinValue; _name = String.Empty; _path = String.Empty; - _port = String.Empty; _timestamp = DateTime.Now; _value = String.Empty; _version = 0; @@ -478,12 +477,12 @@ namespace WebSocketSharp.Net /// public string Port { get { - return _port; + return _port ?? String.Empty; } set { if (value.IsNullOrEmpty ()) { - _port = String.Empty; + _port = value; _ports = null; return;