Skip to content
This repository has been archived by the owner on Oct 19, 2019. It is now read-only.

Commit

Permalink
catch the exception thrown when read cookie value
Browse files Browse the repository at this point in the history
  • Loading branch information
kerryjiang committed Mar 13, 2014
1 parent 2c15f55 commit 3ea499b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion SuperWebSocket/WebSocketSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,14 @@ private void SetCookie()
else
value = string.Empty;

cookies[key] = Uri.UnescapeDataString(value);
try
{
cookies[key] = Uri.UnescapeDataString(value);
}
catch
{
Logger.Error(this, string.Format("Failed to read cookie, key: {0}, value: {1}.", key, value));
}
}
}
}
Expand Down

0 comments on commit 3ea499b

Please sign in to comment.