[Modify] Polish it
This commit is contained in:
parent
f87101d837
commit
a40bd7b22e
@ -878,12 +878,12 @@ namespace WebSocketSharp
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!customCheckHandshakeRequest (_context, out msg)) {
|
if (!customCheckHandshakeRequest (_context, out msg)) {
|
||||||
|
_logger.Error (msg);
|
||||||
|
|
||||||
var res = createHandshakeFailureResponse (HttpStatusCode.BadRequest);
|
var res = createHandshakeFailureResponse (HttpStatusCode.BadRequest);
|
||||||
sendHttpResponse (res);
|
sendHttpResponse (res);
|
||||||
|
|
||||||
_logger.Fatal (msg);
|
msg = "A handshake error has occurred while attempting to accept.";
|
||||||
|
|
||||||
msg = "A fatal error has occurred while attempting to accept.";
|
|
||||||
fatal (msg, CloseStatusCode.PolicyViolation);
|
fatal (msg, CloseStatusCode.PolicyViolation);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user