Skip to content

Commit 70213ae

Browse files
committed
HOTFIX: 에러 한글 깨짐 현상 해결
1 parent 7851d52 commit 70213ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/site/billilge/api/backend/global/security/jwt/TokenAuthenticationFilter.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import site.billilge.api.backend.global.exception.ApiException
1010
import site.billilge.api.backend.global.exception.ErrorResponse
1111
import site.billilge.api.backend.global.exception.GlobalErrorCode
1212
import java.io.IOException
13-
import java.time.LocalDateTime
1413
import java.util.*
1514

1615

@@ -31,6 +30,7 @@ class TokenAuthenticationFilter(
3130
if (exception !is ApiException) return
3231

3332
handleException(response, exception)
33+
return
3434
}
3535
}
3636

@@ -43,7 +43,7 @@ class TokenAuthenticationFilter(
4343

4444
val content = ObjectMapper().writeValueAsString(errorResponse)
4545

46-
response.addHeader("Content-Type", "application/json")
46+
response.addHeader("Content-Type", "application/json; charset=utf-8")
4747
response.writer.write(content)
4848
response.writer.flush()
4949
}

0 commit comments

Comments
 (0)