Commit 5c8914e1 by xiongziliang

修复bug

parent efdc740f
Subproject commit e4b5f7f0495d338fd03924850a45a16a797c4673 Subproject commit 9e0819d36e1f8b85fbd12d6c6c2286178ea96b91
...@@ -174,15 +174,13 @@ public: ...@@ -174,15 +174,13 @@ public:
return m_mapUrlArgs; return m_mapUrlArgs;
} }
static StrCaseMap parseArgs(const string &str,const char *pair_delim = "&", const char *key_delim = "="){ static StrCaseMap parseArgs(const string &str,const char *pair_delim = "&", const char *key_delim = "="){
StrCaseMap ret; StrCaseMap ret;
auto arg_vec = split(str, pair_delim); auto arg_vec = split(str, pair_delim);
for (string &key_val : arg_vec) { for (string &key_val : arg_vec) {
auto key_val_vec = split(key_val, key_delim); auto key = FindField(key_val.data(),NULL,key_delim);
if (key_val_vec.size() >= 2) { auto val = FindField(key_val.data(),key_delim, NULL);
ret[key_val_vec[0]] = key_val_vec[1]; ret[key] = val;
}
} }
return ret; return ret;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论