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:
parent
8f767628cf
commit
46bcf3acf7
|
@ -485,8 +485,8 @@ public class DefaultRequestDirector implements RequestDirector {
|
|||
|
||||
String userinfo = wrapper.getURI().getUserInfo();
|
||||
if (userinfo != null) {
|
||||
targetAuthState.setAuthScheme(new BasicScheme());
|
||||
targetAuthState.setCredentials(new UsernamePasswordCredentials(userinfo));
|
||||
targetAuthState.update(
|
||||
new BasicScheme(), new UsernamePasswordCredentials(userinfo));
|
||||
}
|
||||
|
||||
// Reset headers on the request wrapper
|
||||
|
|
Loading…
Reference in New Issue