Skip to content

Commit

Permalink
[BUGFIX]: 동시접속 에러
Browse files Browse the repository at this point in the history
  • Loading branch information
baeksom committed May 27, 2024
1 parent 990fd1b commit 8a6fbd3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
try {
filterChain.doFilter(request, response);
} catch (JwtException e) {
response.setStatus(401);
log.error("JWT Exception caught: {}", e.getMessage());
response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
response.setContentType(MediaType.APPLICATION_JSON_VALUE);
response.setCharacterEncoding("UTF-8");
objectMapper.writeValue(response.getWriter(), ApiResponse.onFailure("401",e.getMessage(),null));
Expand Down

0 comments on commit 8a6fbd3

Please sign in to comment.