HTTPCLIENT-1855: disabled caching of DIGEST auth scheme instances due to unreliability of nonce counter when the auth cache is shared by multiple sessions

This commit is contained in:
Oleg Kalnichevski 2017-10-20 12:04:26 +02:00
parent 2155361d3b
commit 9368c5f5c8
1 changed files with 1 additions and 2 deletions

View File

@ -316,8 +316,7 @@ public class HttpAuthenticator {
private boolean isCachable(final AuthScheme authScheme) { private boolean isCachable(final AuthScheme authScheme) {
final String schemeName = authScheme.getName(); final String schemeName = authScheme.getName();
return schemeName.equalsIgnoreCase(AuthSchemes.BASIC) || return schemeName.equalsIgnoreCase(AuthSchemes.BASIC);
schemeName.equalsIgnoreCase(AuthSchemes.DIGEST);
} }
private void updateCache(final HttpHost host, final AuthScheme authScheme, final HttpClientContext clientContext) { private void updateCache(final HttpHost host, final AuthScheme authScheme, final HttpClientContext clientContext) {