From 4e97a59671c40b4069ae9d6294f340d800d4ae16 Mon Sep 17 00:00:00 2001 From: Jan Bartel Date: Wed, 22 Feb 2023 17:24:57 +1100 Subject: [PATCH] Issue #9403 sendError(404) not setError(404) for DefaultServlet (#9404) --- .../java/org/eclipse/jetty/ee10/servlet/DefaultServlet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetty-ee10/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/DefaultServlet.java b/jetty-ee10/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/DefaultServlet.java index 14baca5d74de..95681f68e363 100644 --- a/jetty-ee10/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/DefaultServlet.java +++ b/jetty-ee10/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/DefaultServlet.java @@ -388,7 +388,7 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws Se } // no content - resp.setStatus(404); + resp.sendError(404); } else {