[Modify] Handle it
This commit is contained in:
parent
322f3932da
commit
dcce88749a
@ -605,7 +605,15 @@ namespace WebSocketSharp.Net
|
|||||||
internal AuthenticationSchemes SelectAuthenticationScheme (HttpListenerRequest request)
|
internal AuthenticationSchemes SelectAuthenticationScheme (HttpListenerRequest request)
|
||||||
{
|
{
|
||||||
var selector = _authSchemeSelector;
|
var selector = _authSchemeSelector;
|
||||||
return selector != null ? selector (request) : _authSchemes;
|
if (selector == null)
|
||||||
|
return _authSchemes;
|
||||||
|
|
||||||
|
try {
|
||||||
|
return selector (request);
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
return AuthenticationSchemes.None;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
internal void UnregisterContext (HttpListenerContext context)
|
internal void UnregisterContext (HttpListenerContext context)
|
||||||
|
Loading…
Reference in New Issue
Block a user