[Modify] Replace it

This commit is contained in:
sta 2017-12-01 16:30:40 +09:00
parent 34c9c7da0f
commit 1f9ba809cb

View File

@ -868,11 +868,10 @@ namespace WebSocketSharp
if (!checkHandshakeRequest (_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.ProtocolError);
refuseHandshake (
CloseStatusCode.ProtocolError,
"A handshake error has occurred while attempting to accept."
);
return false;
}