[Modify] Add it

This commit is contained in:
sta 2020-12-10 19:45:43 +09:00
parent 3bea54d60f
commit 9ac578fa0e

View File

@ -164,6 +164,28 @@ namespace WebSocketSharp.Net
#endregion
#region Private Methods
private static string createErrorContent (
int statusCode, string statusDescription, string message
)
{
return message != null && message.Length > 0
? String.Format (
"<html><body><h1>{0} {1} ({2})</h1></body></html>",
statusCode,
statusDescription,
message
)
: String.Format (
"<html><body><h1>{0} {1}</h1></body></html>",
statusCode,
statusDescription
);
}
#endregion
#region Internal Methods
internal bool Authenticate ()