We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0370e7 commit 1d7de51Copy full SHA for 1d7de51
websocket-sharp/Net/CookieCollection.cs
@@ -418,21 +418,21 @@ out expires
418
continue;
419
}
420
421
- if (pair.IndexOf ("discard", compType) == 0) {
+ if (pair.Equals ("discard", compType)) {
422
if (cookie != null)
423
cookie.Discard = true;
424
425
426
427
428
- if (pair.IndexOf ("secure", compType) == 0) {
+ if (pair.Equals ("secure", compType)) {
429
430
cookie.Secure = true;
431
432
433
434
435
- if (pair.IndexOf ("httponly", compType) == 0) {
+ if (pair.Equals ("httponly", compType)) {
436
437
cookie.HttpOnly = true;
438
0 commit comments