Replaced deprecated method calls

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1228888 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2012-01-08 16:34:06 +00:00
parent 8f767628cf
commit 46bcf3acf7
1 changed files with 2 additions and 2 deletions

View File

@ -485,8 +485,8 @@ public class DefaultRequestDirector implements RequestDirector {
String userinfo = wrapper.getURI().getUserInfo(); String userinfo = wrapper.getURI().getUserInfo();
if (userinfo != null) { if (userinfo != null) {
targetAuthState.setAuthScheme(new BasicScheme()); targetAuthState.update(
targetAuthState.setCredentials(new UsernamePasswordCredentials(userinfo)); new BasicScheme(), new UsernamePasswordCredentials(userinfo));
} }
// Reset headers on the request wrapper // Reset headers on the request wrapper