From 9cd016c9eb0dae3c5315433b90a6a852b12728e0 Mon Sep 17 00:00:00 2001 From: xzl <771730766@qq.com> Date: Fri, 9 Jun 2017 16:05:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AE=BE=E7=BD=AEHttp?= =?UTF-8?q?=E5=A4=B4=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Http/HttpClient.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Http/HttpClient.h b/src/Http/HttpClient.h index 78535b4d..94888042 100644 --- a/src/Http/HttpClient.h +++ b/src/Http/HttpClient.h @@ -22,7 +22,7 @@ using namespace ZL::Network; namespace ZL { namespace Http { -class HttpArgs : public map +class HttpArgs : public StrCaseMap { public: HttpArgs(){} @@ -62,7 +62,7 @@ public: _method = method; } void setHeader(const HttpHeader &header){ - _header = _header; + _header = header; } void addHeader(const string &key,const string &val){ _header.emplace(key,val);