From ec819de48f7b3cc6410d1719756b0452a9030ee4 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Fri, 27 Oct 2023 10:54:03 +0900 Subject: [PATCH] =?UTF-8?q?json(..)=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/foundation/web/WebClient.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/cokr/xit/foundation/web/WebClient.java b/src/main/java/cokr/xit/foundation/web/WebClient.java index 9c94059..7aa4d7a 100644 --- a/src/main/java/cokr/xit/foundation/web/WebClient.java +++ b/src/main/java/cokr/xit/foundation/web/WebClient.java @@ -376,7 +376,8 @@ public class WebClient { */ public Request json(JSON json) { this.json = json; - return contentType(ContentType.JSON); + contentType(ContentType.JSON); + return header("Accept", ContentType.JSON.type); } private JSON json() {