mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
修复bug
This commit is contained in:
parent
efdc740fb4
commit
5c8914e109
@ -1 +1 @@
|
|||||||
Subproject commit e4b5f7f0495d338fd03924850a45a16a797c4673
|
Subproject commit 9e0819d36e1f8b85fbd12d6c6c2286178ea96b91
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user