You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2022/01/24 13:17:42 UTC

[httpcomponents-client] branch 5.1.x updated: Fixed incompatibility with older versions of Android shipping with Commons Codec < 1.4

This is an automated email from the ASF dual-hosted git repository.

olegk pushed a commit to branch 5.1.x
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git


The following commit(s) were added to refs/heads/5.1.x by this push:
     new abef8ac  Fixed incompatibility with older versions of Android shipping with Commons Codec < 1.4
abef8ac is described below

commit abef8ac6e000d3c3fef62ca13556d0fcbaeb4ccf
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Mon Jan 24 14:12:56 2022 +0100

    Fixed incompatibility with older versions of Android shipping with Commons Codec < 1.4
---
 .../src/main/java/org/apache/hc/client5/http/impl/auth/BasicScheme.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/BasicScheme.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/BasicScheme.java
index 438cc68..400cc35 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/BasicScheme.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/BasicScheme.java
@@ -182,7 +182,7 @@ public class BasicScheme implements AuthScheme, Serializable {
         }
         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();