[Modify] Polish it

This commit is contained in:
sta 2019-04-13 17:55:31 +09:00
parent b0370e7ec2
commit 1d7de51c31

View File

@ -418,21 +418,21 @@ namespace WebSocketSharp.Net
continue; continue;
} }
if (pair.IndexOf ("discard", compType) == 0) { if (pair.Equals ("discard", compType)) {
if (cookie != null) if (cookie != null)
cookie.Discard = true; cookie.Discard = true;
continue; continue;
} }
if (pair.IndexOf ("secure", compType) == 0) { if (pair.Equals ("secure", compType)) {
if (cookie != null) if (cookie != null)
cookie.Secure = true; cookie.Secure = true;
continue; continue;
} }
if (pair.IndexOf ("httponly", compType) == 0) { if (pair.Equals ("httponly", compType)) {
if (cookie != null) if (cookie != null)
cookie.HttpOnly = true; cookie.HttpOnly = true;