[Modify] Polish it
This commit is contained in:
parent
09d04cfe80
commit
346b8549d7
@ -866,12 +866,12 @@ namespace WebSocketSharp
|
|||||||
_logger.Debug (msg);
|
_logger.Debug (msg);
|
||||||
|
|
||||||
if (!checkHandshakeRequest (_context, out msg)) {
|
if (!checkHandshakeRequest (_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.ProtocolError);
|
fatal (msg, CloseStatusCode.ProtocolError);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user