diff --git a/websocket-sharp/Net/HttpUtility.cs b/websocket-sharp/Net/HttpUtility.cs index bebdb7b7..5ec31cdf 100644 --- a/websocket-sharp/Net/HttpUtility.cs +++ b/websocket-sharp/Net/HttpUtility.cs @@ -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;