Skip to content

Commit

Permalink
Merge pull request #229 from OutDecision/issue/216
Browse files Browse the repository at this point in the history
[BUGFIX]: 동시접속 에러
  • Loading branch information
baeksom authored May 27, 2024
2 parents 68436be + 8a6fbd3 commit 37f0937
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 37f0937

Please sign in to comment.