응답관리 인코딩 설명 추가
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user