修复设置Http头的bug

This commit is contained in:
xzl 2017-06-09 16:05:33 +08:00
parent f64dd5b4c7
commit 9cd016c9eb
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ using namespace ZL::Network;
namespace ZL {
namespace Http {
class HttpArgs : public map<string,string>
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);