This is an automated email from the ASF dual-hosted git repository. pjfanning pushed a commit to branch pjfanning-patch-4 in repository https://gitbox.apache.org/repos/asf/pekko-connectors.git
commit 4d994394aefc207b2e23ba0d8538728de203f259 Author: PJ Fanning <[email protected]> AuthorDate: Tue Jun 23 16:15:15 2026 +0100 Use Locale.ROOT for case-insensitive comparison --- .../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: [email protected] For additional commands, e-mail: [email protected]
