This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push: new 48308cb751 Invoke toStringType instead of toString in MimeHeaders 48308cb751 is described below commit 48308cb751149f2c4062ead528b686e37f8f607b 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 ecf4476ce0..2be174ee59 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