for (const auto& t : tokens) {
auto pos = t.find("=");
if (pos != string::npos) {
- std::string key = t.substr(0, pos);
- std::string value = t.substr(pos + 1, t.size() - 1);
- if (key == "RoleArn" || key == "Policy") {
- value = url_decode(value);
- }
- s->info.args.append(key, value);
- }
- }
- }
+ s->info.args.append(t.substr(0,pos),
+ url_decode(t.substr(pos+1, t.size() -1)));
+ }
+ }
+ }
}
auto payload_hash = rgw::auth::s3::calc_v4_payload_hash(post_body);
s->info.args.append("PayloadHash", payload_hash);