修复设置Http头的bug
This commit is contained in:
parent
f64dd5b4c7
commit
9cd016c9eb
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue