Skip to content

Commit b66d7d9

Browse files
committed
Addressing PR feedback
1 parent bf18865 commit b66d7d9

File tree

1 file changed

+1
-1
lines changed
  • http-clients/apache-client/src/main/java/software/amazon/awssdk/http/apache/internal/utils

1 file changed

+1
-1
lines changed

http-clients/apache-client/src/main/java/software/amazon/awssdk/http/apache/internal/utils/ApacheUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,12 @@ private static void addPreemptiveAuthenticationProxy(HttpClientContext clientCon
155155
try {
156156
basicAuth.processChallenge(new BasicHeader(AUTH.PROXY_AUTH, "BASIC realm=default"));
157157
authCache.put(targetHost, basicAuth);
158+
clientContext.setAuthCache(authCache);
158159
} catch (Exception e) {
159160
logger.warn(() -> "Failed to process synthetic challenge for preemptive proxy authentication: " + e.getMessage());
160161
}
161162

162163
clientContext.setCredentialsProvider(credsProvider);
163-
clientContext.setAuthCache(authCache);
164164
}
165165
}
166166

0 commit comments

Comments
 (0)