|
|
|
@ -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 &&
|
|
|
|
|