This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 10.1.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push: new f3cc6060f7 Invoke toStringType instead of toString in MimeHeaders f3cc6060f7 is described below commit f3cc6060f75c75911f8b9988b100de37403bf674 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 +- webapps/docs/changelog.xml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/java/org/apache/tomcat/util/http/MimeHeaders.java b/java/org/apache/tomcat/util/http/MimeHeaders.java index 5a67d76f7a..f42a535070 100644 --- a/java/org/apache/tomcat/util/http/MimeHeaders.java +++ b/java/org/apache/tomcat/util/http/MimeHeaders.java @@ -387,7 +387,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 -------------------- diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index 4730f2c832..f9e571896b 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -218,6 +218,10 @@ <bug>69545</bug>: Improve CRLF skipping for the <code>available</code> method of the <code>ChunkedInputFilter</code>. (remm) </fix> + <fix> + Improve the performance of repeated calls to <code>getHeader()</code>. + Pull request <pr>813</pr> provided by Adwait Kumar Singh. (markt) + </fix> </changelog> </subsection> <subsection name="Jasper"> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org