diff --git a/websocket-sharp/Net/HttpListenerContext.cs b/websocket-sharp/Net/HttpListenerContext.cs index d9e86efe..9c38755f 100644 --- a/websocket-sharp/Net/HttpListenerContext.cs +++ b/websocket-sharp/Net/HttpListenerContext.cs @@ -229,7 +229,7 @@ namespace WebSocketSharp.Net if (user == null || !user.Identity.IsAuthenticated) { var chal = new AuthenticationChallenge (schm, realm).ToString (); - _response.CloseWithAuthChallenge (chal); + sendAuthenticationChallenge (chal); return false; }