From: yuliyang Date: Wed, 12 Feb 2020 00:44:09 +0000 (-0500) Subject: rgw: sts: add all http args to req_info X-Git-Tag: v15.1.1~429^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a205fda90c3d39e2d1e2666c109cade4dff359b6;p=ceph-ci.git rgw: sts: add all http args to req_info fix https://tracker.ceph.com/issues/44090 Signed-off-by: yuliyang --- diff --git a/src/rgw/rgw_rest_sts.cc b/src/rgw/rgw_rest_sts.cc index 75022cdc84e..27715e57b0b 100644 --- a/src/rgw/rgw_rest_sts.cc +++ b/src/rgw/rgw_rest_sts.cc @@ -354,13 +354,8 @@ void RGWHandler_REST_STS::rgw_sts_parse_input() for (const auto& t : tokens) { auto pos = t.find("="); if (pos != string::npos) { - const auto key = t.substr(0, pos); - if (key == "Action") { - s->info.args.append(key, t.substr(pos + 1, t.size() - 1)); - } else if (key == "RoleArn" || key == "Policy") { - const auto value = url_decode(t.substr(pos + 1, t.size() - 1)); - s->info.args.append(key, value); - } + s->info.args.append(t.substr(0,pos), + url_decode(t.substr(pos+1, t.size() -1))); } } }