Skip to content

Commit

Permalink
fix: file view bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarrettluo committed Jul 31, 2024
1 parent 0932ffa commit f42f036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/jiaruiblog/filter/JwtFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain)
response.setCharacterEncoding("UTF-8");
String url = request.getRequestURI().substring(request.getContextPath().length());
// 登录和注册等请求不需要令牌
if (url.contains("login") || url.contains("/user/insert") || url.contains("files")) {
if (url.contains("login") || url.contains("/user/insert") || url.contains("/files/view")) {
response.setStatus(HttpServletResponse.SC_OK);
chain.doFilter(request, response);
return;
Expand Down

0 comments on commit f42f036

Please sign in to comment.