[Modify] Add it
This commit is contained in:
parent
62fba4875b
commit
a04bc16cde
@ -906,6 +906,22 @@ namespace WebSocketSharp.Net
|
|||||||
: toResponseStringVersion1 ();
|
: toResponseStringVersion1 ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal static bool TryCreateCookie (
|
||||||
|
string name, string value, out Cookie result
|
||||||
|
)
|
||||||
|
{
|
||||||
|
result = null;
|
||||||
|
|
||||||
|
try {
|
||||||
|
result = new Cookie (name, value);
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Public Methods
|
#region Public Methods
|
||||||
|
Loading…
Reference in New Issue
Block a user