You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2013/10/28 11:50:55 UTC

svn commit: r1536309 - /httpcomponents/httpclient/trunk/src/docbkx/authentication.xml

Author: olegk
Date: Mon Oct 28 10:50:55 2013
New Revision: 1536309

URL: http://svn.apache.org/r1536309
Log:
HTTPCLIENT-1427: code sample fix in tutorial
Contributed by Lars Francke <lars.francke at gmail.com>

Modified:
    httpcomponents/httpclient/trunk/src/docbkx/authentication.xml

Modified: httpcomponents/httpclient/trunk/src/docbkx/authentication.xml
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/src/docbkx/authentication.xml?rev=1536309&r1=1536308&r2=1536309&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/src/docbkx/authentication.xml (original)
+++ httpcomponents/httpclient/trunk/src/docbkx/authentication.xml Mon Oct 28 10:50:55 2013
@@ -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++) {