인코딩 오류 수정
This commit is contained in:
+4
-2
@@ -9,6 +9,8 @@ import org.springframework.http.MediaType;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.client.RestTemplate;
|
||||
|
||||
import java.nio.charset.Charset;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
/**
|
||||
@@ -37,9 +39,9 @@ class LayoutSyncControllerTest {
|
||||
|
||||
String url = BASE_URL + "?cmd=Message&schema=APIGW";
|
||||
|
||||
// HTTP 헤더 설정
|
||||
// HTTP 헤더 설정 (EUC-KR)
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.setContentType(MediaType.APPLICATION_XML);
|
||||
headers.setContentType(new MediaType("application", "xml", Charset.forName("EUC-KR")));
|
||||
|
||||
// 요청 생성
|
||||
HttpEntity<String> request = new HttpEntity<>(requestXml, headers);
|
||||
|
||||
Reference in New Issue
Block a user