Skip to content

Commit 1d7de51

Browse files
committed
[Modify] Polish it
1 parent b0370e7 commit 1d7de51

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

websocket-sharp/Net/CookieCollection.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -418,21 +418,21 @@ out expires
418418
continue;
419419
}
420420

421-
if (pair.IndexOf ("discard", compType) == 0) {
421+
if (pair.Equals ("discard", compType)) {
422422
if (cookie != null)
423423
cookie.Discard = true;
424424

425425
continue;
426426
}
427427

428-
if (pair.IndexOf ("secure", compType) == 0) {
428+
if (pair.Equals ("secure", compType)) {
429429
if (cookie != null)
430430
cookie.Secure = true;
431431

432432
continue;
433433
}
434434

435-
if (pair.IndexOf ("httponly", compType) == 0) {
435+
if (pair.Equals ("httponly", compType)) {
436436
if (cookie != null)
437437
cookie.HttpOnly = true;
438438

0 commit comments

Comments
 (0)