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