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 010fa29 Code clean-up: Add braces for clarity 010fa29 is described below commit 010fa29d1840d13fd926c5e102ce6742af45d71f 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/javax/servlet/http/HttpServlet.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/java/javax/servlet/http/HttpServlet.java b/java/javax/servlet/http/HttpServlet.java index 57617e7..7cc00bc 100644 --- a/java/javax/servlet/http/HttpServlet.java +++ b/java/javax/servlet/http/HttpServlet.java @@ -688,10 +688,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