Skip to content

Commit

Permalink
GH-1533: server-demo REST API should return bad_request for invalid path
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernard31 committed Nov 9, 2023
1 parent 2bf99b6 commit 73916b7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,10 @@ protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws S
}
return;
}

// nothing match
resp.sendError(HttpServletResponse.SC_BAD_REQUEST, "Invalid path");
return;
}

@Override
Expand Down

0 comments on commit 73916b7

Please sign in to comment.