Refactored a few for HttpListenerAsyncResult.cs
This commit is contained in:
parent
bd70e0b11c
commit
7364805b9e
@ -181,11 +181,11 @@ namespace WebSocketSharp.Net
|
||||
|
||||
internal void Complete (HttpListenerContext context, bool syncCompleted)
|
||||
{
|
||||
var listener = context.Listener;
|
||||
var schm = listener.SelectAuthenticationScheme (context);
|
||||
var lsnr = context.Listener;
|
||||
var schm = lsnr.SelectAuthenticationScheme (context);
|
||||
if (schm != AuthenticationSchemes.Anonymous &&
|
||||
!authenticate (context, schm, listener.Realm, listener.UserCredentialsFinder)) {
|
||||
listener.BeginGetContext (this);
|
||||
!authenticate (context, schm, lsnr.Realm, lsnr.UserCredentialsFinder)) {
|
||||
lsnr.BeginGetContext (this);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user