diff --git a/websocket-sharp/Net/HttpListenerContext.cs b/websocket-sharp/Net/HttpListenerContext.cs index 96ce5cc5..e789b1b2 100644 --- a/websocket-sharp/Net/HttpListenerContext.cs +++ b/websocket-sharp/Net/HttpListenerContext.cs @@ -174,7 +174,7 @@ namespace WebSocketSharp.Net if (schm == AuthenticationSchemes.Anonymous) return true; - if (schm != AuthenticationSchemes.Basic && schm != AuthenticationSchemes.Digest) { + if (schm == AuthenticationSchemes.None) { _response.Close (HttpStatusCode.Forbidden); return false; }