|
|
|
|
@ -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;
|
|
|
|
|
}
|
|
|
|
|
|