[Modify] Polish it

This commit is contained in:
sta 2019-01-24 21:21:11 +09:00
parent bfbc42097e
commit b3cb11fc64

View File

@ -806,8 +806,7 @@ namespace WebSocketSharp.Net
if (basicId.Password != cred.Password)
return null;
}
if (scheme == AuthenticationSchemes.Digest) {
else {
var digestId = (HttpDigestIdentity) id;
if (!digestId.IsValid (cred.Password, realm, method, null))
return null;