mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-17 07:26:47 +00:00
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 HttpResponse execute(HttpHost target, HttpRequest request,
|
||||
|
||||
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…
x
Reference in New Issue
Block a user