Fixes: https://tracker.ceph.com/issues/50920
The plus sign can be used to represent space after conversion, but this
pre conversion string representation will be hex encoded as plus.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
if (key.empty()) {
continue;
}
- const string *pval = &(entry.second);
- string _val;
- if (pval->find_first_of('+') != std::string::npos) {
- _val = *pval;
- boost::replace_all(_val, "+", " ");
- pval = &_val;
- }
-
- (*result)[aws4_uri_recode(key, true)] = aws4_uri_recode(*pval, true);
+ (*result)[aws4_uri_recode(key, true)] = aws4_uri_recode(entry.second, true);
}
}