[Modify] Polish it
This commit is contained in:
parent
b0370e7ec2
commit
1d7de51c31
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user