From 8a8da61ef5e9bad12c04b89324221d08f066906f Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Wed, 8 Apr 2020 13:54:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2windows=E4=B8=8B=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E7=BC=96=E7=A0=81=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/WebApi.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/WebApi.cpp b/server/WebApi.cpp index 6afad9b8..008969ca 100644 --- a/server/WebApi.cpp +++ b/server/WebApi.cpp @@ -154,7 +154,8 @@ static inline void addHttpListener(){ HttpSession::KeyValue headerOut; auto allArgs = getAllArgs(parser); HttpSession::KeyValue &headerIn = parser.getValues(); - headerOut["Content-Type"] = "application/json; charset=utf-8"; + GET_CONFIG(string,charSet,Http::kCharSet); + headerOut["Content-Type"] = StrPrinter << "application/json; charset=" << charSet; if(api_debug){ auto newInvoker = [invoker,parser,allArgs](const string &codeOut, const HttpSession::KeyValue &headerOut,