From 64f4f6436131398bc133bc24a8577f5597e4ba13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=8F=84=EB=AA=A8?= Date: Thu, 21 Dec 2023 02:28:55 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20GlobalResponseAdvice=20=EC=9D=91?= =?UTF-8?q?=EB=8B=B5=20=EA=B0=92=EC=9D=B4=20String=20=ED=83=80=EC=9E=85=20?= =?UTF-8?q?=EC=98=88=EC=99=B8=20=EC=B2=98=EB=A6=AC=20(#59)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../depromeet/global/config/response/GlobalResponseAdvice.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/depromeet/global/config/response/GlobalResponseAdvice.java b/src/main/java/com/depromeet/global/config/response/GlobalResponseAdvice.java index ca989e640..e23bc6b9e 100644 --- a/src/main/java/com/depromeet/global/config/response/GlobalResponseAdvice.java +++ b/src/main/java/com/depromeet/global/config/response/GlobalResponseAdvice.java @@ -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()) {