|
|
|
@ -343,7 +343,7 @@ public class TbHttpClient { |
|
|
|
if (CredentialsType.BASIC == credentials.getType()) { |
|
|
|
BasicCredentials basicCredentials = (BasicCredentials) credentials; |
|
|
|
String authString = basicCredentials.getUsername() + ":" + basicCredentials.getPassword(); |
|
|
|
String encodedAuthString = new String(Base64.getDecoder().decode(authString.getBytes(StandardCharsets.UTF_8))); |
|
|
|
String encodedAuthString = new String(Base64.getEncoder().encode(authString.getBytes(StandardCharsets.UTF_8))); |
|
|
|
headers.add("Authorization", "Basic " + encodedAuthString); |
|
|
|
} |
|
|
|
} |
|
|
|
|