修复http文件目录相关bug:#1083

This commit is contained in:
ziyue 2021-09-03 17:58:23 +08:00
parent 6456ba4bfa
commit 5f2e4ff2c0

View File

@ -139,6 +139,10 @@ StrCaseMap Parser::parseArgs(const string &str, const char *pair_delim, const ch
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) {
if (key_val.empty()) {
//忽略
continue;
}
auto key = trim(FindField(key_val.data(), NULL, key_delim)); auto key = trim(FindField(key_val.data(), NULL, key_delim));
if (!key.empty()) { if (!key.empty()) {
auto val = trim(FindField(key_val.data(), key_delim, NULL)); auto val = trim(FindField(key_val.data(), key_delim, NULL));