Skip to content

Commit 57a6257

Browse files
ludochgae-java-bot
authored andcommitted
Internal change
PiperOrigin-RevId: 463528579 Change-Id: I3c5dca2d33422b361dcc7aa207252048cfb94af6
1 parent 59f4fbd commit 57a6257

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

applications/proberapp/src/main/java/app/ProberApp.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response)
221221
// request not already specified to a servlet, but since our prober configuration makes that
222222
// difficult to change, we need this safeguard to prevent and infinite loop since this servlet
223223
// calls itself multiple times.
224-
if (request.getRequestURL().toString().contains("favicon.ico")) {
224+
if (!request.getServletPath().equals("/")) {
225+
logger.log(Level.SEVERE, "Ignoring servlet request for:" + request.getServletPath());
225226
return;
226227
}
227228
response.setContentType("text/plain");

0 commit comments

Comments
 (0)