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 74bafa3  MimeHeader.toString to speed up debugging in IDEs (#457)
74bafa3 is described below

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

    MimeHeader.toString to speed up debugging in IDEs (#457)
    
    #457 MimeHeader.toString to speed up debugging in IDEs
    
    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 691cd55..0a5ca02 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -155,6 +155,10 @@
         Improve performance of Connector shutdown - primarily to reduce the 
time
         it takes to run the test suite. (markt)
       </scode>
+      <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