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

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


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

commit fce3dc1fcc733d01435e394fff57e21007d62426
Author: David Blevins <david.blev...@gmail.com>
AuthorDate: Thu Nov 4 03:35:48 2021 -0700

    MimeHeader.toString to speed up debugging in IDEs (#457)
    
    Co-authored-by: Mark Thomas <ma...@apache.org>
---
 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 0dcbed0..5d72085 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -124,6 +124,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="WebSocket">

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

Reply via email to