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 dada59ea45 Fix default implementation of isTrailerFieldsReady() dada59ea45 is described below commit dada59ea4575eb2030e5fbb6eca41700d736bf3e Author: Mark Thomas <ma...@apache.org> AuthorDate: Fri Nov 11 11:28:05 2022 +0000 Fix default implementation of isTrailerFieldsReady() --- java/jakarta/servlet/http/HttpServletRequest.java | 2 +- webapps/docs/changelog.xml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/java/jakarta/servlet/http/HttpServletRequest.java b/java/jakarta/servlet/http/HttpServletRequest.java index b98ee5b8e5..20c15ca6d7 100644 --- a/java/jakarta/servlet/http/HttpServletRequest.java +++ b/java/jakarta/servlet/http/HttpServletRequest.java @@ -607,6 +607,6 @@ public interface HttpServletRequest extends ServletRequest { * @since Servlet 4.0 */ public default boolean isTrailerFieldsReady() { - return false; + return true; } } diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index e55e34d577..128c3cf94f 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -145,6 +145,13 @@ <code>JsonErrorReportValve</code> to ensure that it always outputs valid JSON. (markt) </fix> + <fix> + Correct the default implementation of + <code>HttpServletRequest.isTrailerFieldsReady()</code> to return + <code>true</code> so it is consistent with the default implementation of + <code>HttpServletRequest.getTrailerFields()</code> and with the Servlet + API provided by the Jakarta EE project. (markt) + </fix> </changelog> </subsection> <subsection name="Coyote"> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org