응답관리 인코딩 설명 추가

This commit is contained in:
Sungpil Hyun
2024-05-28 22:36:24 +09:00
parent 4a9de03096
commit 6069c9b3a3
2 changed files with 27 additions and 0 deletions
@@ -77,6 +77,10 @@ public class MockApiController {
String contentType = responseHeaders.getFirst(HttpHeaders.CONTENT_TYPE);
if (!contentType.contains("charset")) {
responseHeaders.set(HttpHeaders.CONTENT_TYPE, contentType + "; charset=" + encodingCharset);
} else {
if (!contentType.contains(encodingCharset)) {
logger.warn("Existing content type charset does not match the encodingCharset: " + encodingCharset);
}
}
}