You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by mi...@apache.org on 2019/12/15 15:16:24 UTC

[httpcomponents-client] branch master updated: Use language-agnotic Locale.ROOT

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 86b1a3b  Use language-agnotic Locale.ROOT
86b1a3b is described below

commit 86b1a3b711b10a4976312b2a069417515ce0d194
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Sun Dec 15 16:15:36 2019 +0100

    Use language-agnotic Locale.ROOT
---
 .../main/java/org/apache/hc/client5/http/impl/auth/DigestScheme.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/DigestScheme.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/DigestScheme.java
index fae334f..974d63c 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/DigestScheme.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/DigestScheme.java
@@ -283,7 +283,7 @@ public class DigestScheme implements AuthScheme, Serializable {
         }
 
         final StringBuilder sb = new StringBuilder(8);
-        try (final Formatter formatter = new Formatter(sb, Locale.US)) {
+        try (final Formatter formatter = new Formatter(sb, Locale.ROOT)) {
             formatter.format("%08x", nounceCount);
         }
         final String nc = sb.toString();