This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 9c46ca4d27 Don't always force to lower case in deprecated method
9c46ca4d27 is described below
commit 9c46ca4d275c2077a2032a239c53234bcc228add
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Apr 17 11:19:36 2026 +0100
Don't always force to lower case in deprecated method
---
java/org/apache/coyote/http2/HPackHuffman.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/java/org/apache/coyote/http2/HPackHuffman.java
b/java/org/apache/coyote/http2/HPackHuffman.java
index b7240dedb9..0b669a7590 100644
--- a/java/org/apache/coyote/http2/HPackHuffman.java
+++ b/java/org/apache/coyote/http2/HPackHuffman.java
@@ -443,7 +443,11 @@ public class HPackHuffman {
*/
@Deprecated
public static boolean encode(ByteBuffer buffer, String toEncode, boolean
forceLowercase) {
- return encode(buffer, toEncode.toLowerCase(Locale.ENGLISH));
+ if (forceLowercase) {
+ return encode(buffer, toEncode.toLowerCase(Locale.ENGLISH));
+ } else {
+ return encode(buffer, toEncode);
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]