[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,9 +554,14 @@ namespace WebSocketSharp.Net
internal static CookieCollection Parse (string value, bool response) internal static CookieCollection Parse (string value, bool response)
{ {
return response try {
? parseResponse (value) return response
: parseRequest (value); ? parseResponse (value)
: parseRequest (value);
}
catch (Exception ex) {
throw new CookieException ("It could not be parsed.", ex);
}
} }
internal void SetOrRemove (Cookie cookie) internal void SetOrRemove (Cookie cookie)