Skip to content

Commit

Permalink
fix: GlobalResponseAdvice 응답 값이 String 타입 예외 처리 (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdomo authored Dec 20, 2023
1 parent fc1eb30 commit 64f4f64
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public Object beforeBodyWrite(
((ServletServerHttpResponse) response).getServletResponse();
int status = servletResponse.getStatus();
HttpStatus resolve = HttpStatus.resolve(status);
if (resolve == null) {
if (resolve == null || body instanceof String) {
return body;
}
if (resolve.is2xxSuccessful()) {
Expand Down

0 comments on commit 64f4f64

Please sign in to comment.