From 1d7de51c31b6da7a17a65519f7aa33edbc9adb8e Mon Sep 17 00:00:00 2001 From: sta Date: Sat, 13 Apr 2019 17:55:31 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/CookieCollection.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/websocket-sharp/Net/CookieCollection.cs b/websocket-sharp/Net/CookieCollection.cs index 98fb8b02..ba120007 100644 --- a/websocket-sharp/Net/CookieCollection.cs +++ b/websocket-sharp/Net/CookieCollection.cs @@ -418,21 +418,21 @@ namespace WebSocketSharp.Net continue; } - if (pair.IndexOf ("discard", compType) == 0) { + if (pair.Equals ("discard", compType)) { if (cookie != null) cookie.Discard = true; continue; } - if (pair.IndexOf ("secure", compType) == 0) { + if (pair.Equals ("secure", compType)) { if (cookie != null) cookie.Secure = true; continue; } - if (pair.IndexOf ("httponly", compType) == 0) { + if (pair.Equals ("httponly", compType)) { if (cookie != null) cookie.HttpOnly = true;