mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-18 07:55:42 +00:00
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 String generateAuthResponse(
|
|||||||
this.buffer.charset(charset);
|
this.buffer.charset(charset);
|
||||||
this.buffer.append(this.username).append(":").append(this.password);
|
this.buffer.append(this.username).append(":").append(this.password);
|
||||||
if (this.base64codec == null) {
|
if (this.base64codec == null) {
|
||||||
this.base64codec = new Base64(0);
|
this.base64codec = new Base64();
|
||||||
}
|
}
|
||||||
final byte[] encodedCreds = this.base64codec.encode(this.buffer.toByteArray());
|
final byte[] encodedCreds = this.base64codec.encode(this.buffer.toByteArray());
|
||||||
this.buffer.reset();
|
this.buffer.reset();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user