[Modify] Replace it
This commit is contained in:
parent
a11582d104
commit
ae2e23687b
@ -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 &&
|
||||||
|
Loading…
Reference in New Issue
Block a user