From b3cb11fc645714015e3822ba68c4e8c0291a4536 Mon Sep 17 00:00:00 2001 From: sta Date: Thu, 24 Jan 2019 21:21:11 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/HttpUtility.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;