Fixed incompatibility with older versions of Android shipping with Commons Codec < 1.4

This commit is contained in:
Oleg Kalnichevski 2022-01-24 14:12:56 +01:00
parent 235900eb57
commit 8881ef4b3f
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ public class BasicScheme implements AuthScheme, Serializable {
this.buffer.charset(charset);
this.buffer.append(this.username).append(":").append(this.password);
if (this.base64codec == null) {
this.base64codec = new Base64(0);
this.base64codec = new Base64();
}
final byte[] encodedCreds = this.base64codec.encode(this.buffer.toByteArray());
this.buffer.reset();