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 4511784377 Invoke toStringType instead of toString in MimeHeaders
4511784377 is described below

commit 45117843779247348b9d8aa7d2f4d45b50d32782
Author: Adwait Kumar Singh <adwsi...@amazon.com>
AuthorDate: Wed Jan 29 14:43:45 2025 -0800

    Invoke toStringType instead of toString in MimeHeaders
---
 java/org/apache/tomcat/util/http/MimeHeaders.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/tomcat/util/http/MimeHeaders.java 
b/java/org/apache/tomcat/util/http/MimeHeaders.java
index 43b089451d..0263e5711b 100644
--- a/java/org/apache/tomcat/util/http/MimeHeaders.java
+++ b/java/org/apache/tomcat/util/http/MimeHeaders.java
@@ -382,7 +382,7 @@ public class MimeHeaders {
 
     public String getHeader(String name) {
         MessageBytes mh = getValue(name);
-        return mh != null ? mh.toString() : null;
+        return mh != null ? mh.toStringType() : null;
     }
 
     // -------------------- Removing --------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to