Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ private static void addPreemptiveAuthenticationProxy(HttpClientContext clientCon
AuthCache authCache = new BasicAuthCache();
// Generate BASIC scheme object and add it to the local auth cache
BasicScheme basicAuth = new BasicScheme();
try {
basicAuth.processChallenge(new BasicHeader(AUTH.PROXY_AUTH, "BASIC realm=default"));
} catch (MalformedChallengeException e) {
throw new RuntimeException(e);
}
authCache.put(targetHost, basicAuth);

clientContext.setCredentialsProvider(credsProvider);
Expand Down