HTTPCLIENT-1427: code sample fix in tutorial

Contributed by Lars Francke <lars.francke at gmail.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1536309 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2013-10-28 10:50:55 +00:00
parent 2b31931ecf
commit 7d7e7b1a4a
1 changed files with 1 additions and 0 deletions

View File

@ -293,6 +293,7 @@ authCache.put(targetHost, basicAuth);
// Add AuthCache to the execution context
HttpClientContext context = HttpClientContext.create();
context.setCredentialsProvider(credsProvider);
context.setAuthCache(authCache);
HttpGet httpget = new HttpGet("/");
for (int i = 0; i < 3; i++) {