[Modify] Re-throw it

This commit is contained in:
sta 2019-05-12 21:39:54 +09:00
parent 15c99a75a7
commit b2b158db02

View File

@ -554,10 +554,15 @@ namespace WebSocketSharp.Net
internal static CookieCollection Parse (string value, bool response)
{
try {
return response
? parseResponse (value)
: parseRequest (value);
}
catch (Exception ex) {
throw new CookieException ("It could not be parsed.", ex);
}
}
internal void SetOrRemove (Cookie cookie)
{