From 346b8549d71969a8ea87b5d988ad0dd9040d4c14 Mon Sep 17 00:00:00 2001 From: sta Date: Tue, 28 Nov 2017 14:47:17 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/WebSocket.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/websocket-sharp/WebSocket.cs b/websocket-sharp/WebSocket.cs index 8091533e..5bd20584 100644 --- a/websocket-sharp/WebSocket.cs +++ b/websocket-sharp/WebSocket.cs @@ -866,12 +866,12 @@ namespace WebSocketSharp _logger.Debug (msg); if (!checkHandshakeRequest (_context, out msg)) { + _logger.Error (msg); + var res = createHandshakeFailureResponse (HttpStatusCode.BadRequest); sendHttpResponse (res); - _logger.Fatal (msg); - - msg = "A fatal error has occurred while attempting to accept."; + msg = "A handshake error has occurred while attempting to accept."; fatal (msg, CloseStatusCode.ProtocolError); return false;