[Modify] Replace it

This commit is contained in:
sta 2018-10-01 19:57:48 +09:00
parent 126744f36e
commit b740ea771d

View File

@ -1038,7 +1038,10 @@ namespace WebSocketSharp.Net
if (output == null) if (output == null)
throw new ArgumentNullException ("output"); throw new ArgumentNullException ("output");
output.Write (HtmlEncode (s)); if (s.Length == 0)
return;
output.Write (htmlEncode (s));
} }
public static string UrlDecode (string s) public static string UrlDecode (string s)