Fixed incompatibility with older versions of Android shipping with Commons Codec < 1.4
This commit is contained in:
parent
235900eb57
commit
8881ef4b3f
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue