[Modify] Replace it

This commit is contained in:
sta 2017-12-01 16:40:28 +09:00
parent 1f9ba809cb
commit 7de8f735df

View File

@ -879,11 +879,10 @@ namespace WebSocketSharp
if (!customCheckHandshakeRequest (_context, out msg)) {
_logger.Error (msg);
var res = createHandshakeFailureResponse (HttpStatusCode.BadRequest);
sendHttpResponse (res);
msg = "A handshake error has occurred while attempting to accept.";
fatal (msg, CloseStatusCode.PolicyViolation);
refuseHandshake (
CloseStatusCode.PolicyViolation,
"A handshake error has occurred while attempting to accept."
);
return false;
}