[Modify] Re-throw it

master
sta 7 years ago
parent 15c99a75a7
commit b2b158db02

@ -554,10 +554,15 @@ namespace WebSocketSharp.Net
internal static CookieCollection Parse (string value, bool response) internal static CookieCollection Parse (string value, bool response)
{ {
try {
return response return response
? parseResponse (value) ? parseResponse (value)
: parseRequest (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)
{ {

Loading…
Cancel
Save