Skip to content

Commit ff5e12c

Browse files
Only modifed IpRateLimitFilter.java. Nothing else.
Signed-off-by: vimal-java-dev <vimal929@gmail.com>
1 parent 89b86ad commit ff5e12c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/vimaltech/contactapi/security/IpRateLimitFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ protected void doFilterInternal(HttpServletRequest request,
3636
FilterChain filterChain)
3737
throws ServletException, IOException {
3838

39-
if (!request.getRequestURI().equals("/api/v1/contact")) {
39+
if (!request.getServletPath().startsWith("/api/v1/contact")) {
4040
filterChain.doFilter(request, response);
4141
return;
4242
}

0 commit comments

Comments
 (0)