From bdcf479931ce33572d342656d897bacfdf14ca6a Mon Sep 17 00:00:00 2001 From: sta Date: Thu, 5 Nov 2020 19:58:55 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/HttpConnection.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/websocket-sharp/Net/HttpConnection.cs b/websocket-sharp/Net/HttpConnection.cs index af7b5bb9..fef71ed9 100644 --- a/websocket-sharp/Net/HttpConnection.cs +++ b/websocket-sharp/Net/HttpConnection.cs @@ -619,7 +619,10 @@ namespace WebSocketSharp.Net res.ContentType = "text/html"; var content = new StringBuilder (64); - content.AppendFormat ("

{0} {1}", status, res.StatusDescription); + content.AppendFormat ( + "

{0} {1}", status, res.StatusDescription + ); + if (message != null && message.Length > 0) content.AppendFormat (" ({0})

", message); else