[Modify] Replace it
This commit is contained in:
parent
34c9c7da0f
commit
1f9ba809cb
@ -868,11 +868,10 @@ namespace WebSocketSharp
|
|||||||
if (!checkHandshakeRequest (_context, out msg)) {
|
if (!checkHandshakeRequest (_context, out msg)) {
|
||||||
_logger.Error (msg);
|
_logger.Error (msg);
|
||||||
|
|
||||||
var res = createHandshakeFailureResponse (HttpStatusCode.BadRequest);
|
refuseHandshake (
|
||||||
sendHttpResponse (res);
|
CloseStatusCode.ProtocolError,
|
||||||
|
"A handshake error has occurred while attempting to accept."
|
||||||
msg = "A handshake error has occurred while attempting to accept.";
|
);
|
||||||
fatal (msg, CloseStatusCode.ProtocolError);
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user