diff --git a/websocket-sharp/Net/HttpListener.cs b/websocket-sharp/Net/HttpListener.cs index e7da1488..78c73fa6 100644 --- a/websocket-sharp/Net/HttpListener.cs +++ b/websocket-sharp/Net/HttpListener.cs @@ -604,9 +604,12 @@ namespace WebSocketSharp.Net _connections.Remove (connection); } - internal AuthenticationSchemes SelectAuthenticationScheme (HttpListenerRequest request) + internal AuthenticationSchemes SelectAuthenticationScheme ( + HttpListenerRequest request + ) { var selector = _authSchemeSelector; + if (selector == null) return _authSchemes;