[Modify] Polish it

master
sta 6 years ago
parent 617659db6b
commit 45a72e9b88

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

Loading…
Cancel
Save