[Modify] Polish it
This commit is contained in:
parent
617659db6b
commit
45a72e9b88
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user