[Modify] Add it
This commit is contained in:
parent
3bea54d60f
commit
9ac578fa0e
@ -164,6 +164,28 @@ namespace WebSocketSharp.Net
|
|||||||
|
|
||||||
#endregion
|
#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
|
#region Internal Methods
|
||||||
|
|
||||||
internal bool Authenticate ()
|
internal bool Authenticate ()
|
||||||
|
Loading…
Reference in New Issue
Block a user