[Modify] Polish it

This commit is contained in:
sta 2020-03-09 20:53:51 +09:00
parent 617659db6b
commit 45a72e9b88

View File

@ -831,9 +831,12 @@ namespace WebSocketSharp.Net
private static string checkValue (string value)
{
if (value == null || value.Length == 0)
if (value == null)
return String.Empty;
if (value.Length == 0)
return value;
value = value.Trim ();
if (value.Length > 65535) {