[Modify] Polish it

This commit is contained in:
sta 2020-11-05 19:58:55 +09:00
parent 3088a51a6b
commit bdcf479931

View File

@ -619,7 +619,10 @@ namespace WebSocketSharp.Net
res.ContentType = "text/html";
var content = new StringBuilder (64);
content.AppendFormat ("<html><body><h1>{0} {1}", status, res.StatusDescription);
content.AppendFormat (
"<html><body><h1>{0} {1}", status, res.StatusDescription
);
if (message != null && message.Length > 0)
content.AppendFormat (" ({0})</h1></body></html>", message);
else