From ba8443ef12ae197fbc709352d6c43c4bffad7de2 Mon Sep 17 00:00:00 2001 From: Istvan Toth Date: Thu, 24 Oct 2024 15:08:58 +0200 Subject: [PATCH] slight change in logic, it is equivalent, but more readable. --- .../org/apache/hc/client5/http/impl/auth/HttpAuthenticator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/HttpAuthenticator.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/HttpAuthenticator.java index 451102978..1deab416c 100644 --- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/HttpAuthenticator.java +++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/HttpAuthenticator.java @@ -302,7 +302,7 @@ public final class HttpAuthenticator { } authExchange.reset(); authExchange.setState(AuthExchange.State.FAILURE); - if (!challenged) { + if (isChallengeExpected) { throw ex; } }