Skip to content

Commit fca8676

Browse files
authored
fix: avoid executing function when /favicon.ico or /robots.txt is called (#226)
1 parent 9f7155b commit fca8676

File tree

1 file changed

+1
-0
lines changed
  • invoker/core/src/main/java/com/google/cloud/functions/invoker/runner

1 file changed

+1
-0
lines changed

invoker/core/src/main/java/com/google/cloud/functions/invoker/runner/Invoker.java

+1
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ public void handle(
474474
throws IOException, ServletException {
475475
if (NOT_FOUND_PATHS.contains(request.getRequestURI())) {
476476
response.sendError(HttpStatus.NOT_FOUND_404, "Not Found");
477+
return;
477478
}
478479
super.handle(target, baseRequest, request, response);
479480
}

0 commit comments

Comments
 (0)