Skip to content

Commit

Permalink
Merge pull request #28 from TapGoNow/zx_branch
Browse files Browse the repository at this point in the history
fix image preview bug
  • Loading branch information
Jarrettluo authored Aug 1, 2024
2 parents f42f036 + 1bb61ba commit 98703b9
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/view")) {
if (url.contains("login") || url.contains("/user/insert") || url.contains("/files/view") || url.contains("/files/image2")) {
response.setStatus(HttpServletResponse.SC_OK);
chain.doFilter(request, response);
return;
Expand Down

0 comments on commit 98703b9

Please sign in to comment.