From 789e779048e54d56cc6be104b58c5dcee0b943bc Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 1 Mar 2019 21:55:20 +0900 Subject: [PATCH] [Modify] Move it --- websocket-sharp/Net/Cookie.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/websocket-sharp/Net/Cookie.cs b/websocket-sharp/Net/Cookie.cs index 4c9f1297..7f339bb4 100644 --- a/websocket-sharp/Net/Cookie.cs +++ b/websocket-sharp/Net/Cookie.cs @@ -247,7 +247,9 @@ namespace WebSocketSharp.Net #region Internal Properties internal bool ExactDomain { - get; set; + get { + return _domain.Length == 0 || _domain[0] != '.'; + } } internal int MaxAge { @@ -362,7 +364,6 @@ namespace WebSocketSharp.Net set { _domain = value ?? String.Empty; - ExactDomain = _domain.Length == 0 || _domain[0] != '.'; } }