From 0637f1b476cfe0666c6c2413289e6f4e24723b81 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Mon, 20 May 2019 16:32:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dvariant=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=BD=AC=E6=8D=A2=E6=88=90json=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/WebApi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/WebApi.cpp b/server/WebApi.cpp index afbb069a..687309e2 100644 --- a/server/WebApi.cpp +++ b/server/WebApi.cpp @@ -134,7 +134,7 @@ static inline void addHttpListener(){ const string &contentOut){ stringstream ss; for(auto &pr : allArgs ){ - ss << pr.first << " : " << (string)pr.second << "\r\n"; + ss << pr.first << " : " << pr.second << "\r\n"; } DebugL << "\r\n# request:\r\n" << parser.Method() << " " << parser.FullUrl() << "\r\n" @@ -379,7 +379,7 @@ void installWebApi() { //rtsp可以有双重鉴权!后面还会触发on_play事件 val["code"] = 0; val["encrypted"] = false; - val["passwd"] = allArgs["user_name"]; + val["passwd"] = allArgs["user_name"].data(); }); API_REGIST(hook,on_stream_changed,{