[Modify] Replace it

This commit is contained in:
sta 2016-01-19 14:44:16 +09:00
parent a11582d104
commit ae2e23687b

View File

@ -669,11 +669,8 @@ namespace WebSocketSharp
var msg = checkIfValidHandshakeRequest (_context); var msg = checkIfValidHandshakeRequest (_context);
if (msg != null) { if (msg != null) {
_logger.Error (msg); sendHttpResponse (createHandshakeCloseResponse (HttpStatusCode.BadRequest));
error ("An error has occurred while accepting.", null); throw new WebSocketException (CloseStatusCode.ProtocolError, msg);
Close (HttpStatusCode.BadRequest);
return false;
} }
if (_protocol != null && if (_protocol != null &&