mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
修复http文件目录相关bug:#1083
This commit is contained in:
parent
6456ba4bfa
commit
5f2e4ff2c0
@ -139,6 +139,10 @@ StrCaseMap Parser::parseArgs(const string &str, const char *pair_delim, const ch
|
||||
StrCaseMap ret;
|
||||
auto arg_vec = split(str, pair_delim);
|
||||
for (string &key_val : arg_vec) {
|
||||
if (key_val.empty()) {
|
||||
//忽略
|
||||
continue;
|
||||
}
|
||||
auto key = trim(FindField(key_val.data(), NULL, key_delim));
|
||||
if (!key.empty()) {
|
||||
auto val = trim(FindField(key_val.data(), key_delim, NULL));
|
||||
|
Loading…
Reference in New Issue
Block a user