Skip to content

Commit

Permalink
Invoke toStringType instead of toString in MimeHeaders
Browse files Browse the repository at this point in the history
  • Loading branch information
adwsingh authored and markt-asf committed Jan 30, 2025
1 parent 2d38c99 commit 51e8b1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion java/org/apache/tomcat/util/http/MimeHeaders.java
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ public MessageBytes getUniqueValue(String name) {

public String getHeader(String name) {
MessageBytes mh = getValue(name);
return mh != null ? mh.toString() : null;
return mh != null ? mh.toStringType() : null;
}

// -------------------- Removing --------------------
Expand Down
4 changes: 4 additions & 0 deletions webapps/docs/changelog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,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">
Expand Down

0 comments on commit 51e8b1c

Please sign in to comment.