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 902912d Code clean-up: Add braces for clarity 902912d is described below commit 902912d497fd03bd6a6015e9bfa80c55046cb783 Author: Mark Thomas <ma...@apache.org> AuthorDate: Mon May 24 11:53:59 2021 +0100 Code clean-up: Add braces for clarity Trivial commit to trigger a CI build to test CI changes --- java/jakarta/servlet/http/HttpServlet.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/java/jakarta/servlet/http/HttpServlet.java b/java/jakarta/servlet/http/HttpServlet.java index ba98853..15ad35c 100644 --- a/java/jakarta/servlet/http/HttpServlet.java +++ b/java/jakarta/servlet/http/HttpServlet.java @@ -725,10 +725,12 @@ public abstract class HttpServlet extends GenericServlet { */ private void maybeSetLastModified(HttpServletResponse resp, long lastModified) { - if (resp.containsHeader(HEADER_LASTMOD)) + if (resp.containsHeader(HEADER_LASTMOD)) { return; - if (lastModified >= 0) + } + if (lastModified >= 0) { resp.setDateHeader(HEADER_LASTMOD, lastModified); + } } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org