Skip to content

Commit

Permalink
ensure chain.doFilter(request, response); is called once
Browse files Browse the repository at this point in the history
fix #25
  • Loading branch information
emmysteven committed Nov 17, 2023
1 parent e0308d9 commit db75c90
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha
String newPath = path.substring(0, path.length() - 1);
HttpServletRequest newRequest = new HttpRequestWrapper(httpRequest, newPath);
chain.doFilter(newRequest, response);
} else {
chain.doFilter(request, response);
}
chain.doFilter(request, response);
}

private static class HttpRequestWrapper extends HttpServletRequestWrapper {
Expand Down

0 comments on commit db75c90

Please sign in to comment.