This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.0.x by this push:
     new 442f7a2  MimeHeader.toString to speed up debugging in IDEs (#457)
442f7a2 is described below

commit 442f7a27c6f6b722dc1718f0bd3cc5b87595bf84
Author: David Blevins <[email protected]>
AuthorDate: Thu Nov 4 03:35:48 2021 -0700

    MimeHeader.toString to speed up debugging in IDEs (#457)
    
    Co-authored-by: Mark Thomas <[email protected]>
---
 java/org/apache/tomcat/util/http/MimeHeaders.java | 5 +++++
 webapps/docs/changelog.xml                        | 4 ++++
 2 files changed, 9 insertions(+)

diff --git a/java/org/apache/tomcat/util/http/MimeHeaders.java 
b/java/org/apache/tomcat/util/http/MimeHeaders.java
index 2396c45..838ac61 100644
--- a/java/org/apache/tomcat/util/http/MimeHeaders.java
+++ b/java/org/apache/tomcat/util/http/MimeHeaders.java
@@ -539,4 +539,9 @@ class MimeHeaderField {
     public MessageBytes getValue() {
         return valueB;
     }
+
+    @Override
+    public String toString() {
+        return nameB + ": " + valueB;
+    }
 }
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 5d26791..49f0bf8 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -128,6 +128,10 @@
         Refactor the APR/native connector shutdown to reduce the possibility of
         a JVM crash during the connector shutdown. (markt)
       </fix>
+      <add>
+        <pr>457</pr>: Add a <code>toString()</code> method to
+        <code>MimeHeader</code> to aid debugging. (dblevins)
+      </add>
     </changelog>
   </subsection>
   <subsection name="Jasper">

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to