You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by fa...@apache.org on 2026/06/23 15:35:32 UTC

(pekko-connectors) branch main updated: Use Locale.ROOT for case-insensitive comparison (#1713)

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

pjfanning pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-connectors.git


The following commit(s) were added to refs/heads/main by this push:
     new 46fe6df98 Use Locale.ROOT for case-insensitive comparison (#1713)
46fe6df98 is described below

commit 46fe6df982ba384dea25e6c2b4607021ba11de8b
Author: PJ Fanning <pj...@users.noreply.github.com>
AuthorDate: Tue Jun 23 16:35:26 2026 +0100

    Use Locale.ROOT for case-insensitive comparison (#1713)
---
 .../org/apache/pekko/stream/connectors/awsspi/PekkoHttpClient.scala    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/aws-spi-pekko-http/src/main/scala/org/apache/pekko/stream/connectors/awsspi/PekkoHttpClient.scala b/aws-spi-pekko-http/src/main/scala/org/apache/pekko/stream/connectors/awsspi/PekkoHttpClient.scala
index 18895e9ec..b7b0050b7 100644
--- a/aws-spi-pekko-http/src/main/scala/org/apache/pekko/stream/connectors/awsspi/PekkoHttpClient.scala
+++ b/aws-spi-pekko-http/src/main/scala/org/apache/pekko/stream/connectors/awsspi/PekkoHttpClient.scala
@@ -17,6 +17,7 @@
 
 package org.apache.pekko.stream.connectors.awsspi
 
+import java.util.Locale
 import java.util.concurrent.{ CompletableFuture, TimeUnit }
 import java.security.SecureRandom
 import java.security.cert.X509Certificate
@@ -149,7 +150,7 @@ object PekkoHttpClient {
         }
         // skip content-length as it will be managed by pekko-http in the entity, but capture its value
         // so we can use it to build a fixed-length entity, preventing a fallback to chunked transfer encoding
-        if (`Content-Length`.lowercaseName == headerName.toLowerCase)
+        if (`Content-Length`.lowercaseName == headerName.toLowerCase(Locale.ROOT))
           (ctHeader, hdrs, Some(headerValue.get(0).toLong))
         else {
           HttpHeader.parse(headerName, headerValue.get(0)) match {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org