Fix for basic credentials
This commit is contained in:
parent
5513caee97
commit
85bfbce2a4
@ -281,7 +281,7 @@ public class TbHttpClient {
|
||||
private void addAuthorizationHeader(HttpHeaders headers) {
|
||||
HttpClientCredentials credentials = config.getCredentials();
|
||||
if (CredentialsType.BASIC == credentials.getType()) {
|
||||
headers.add("Authorization", ((HttpBasicCredentials) credentials).getPassword());
|
||||
headers.add("Authorization", ((HttpBasicCredentials) credentials).getBasicAuthHeaderValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user