From a205fda90c3d39e2d1e2666c109cade4dff359b6 Mon Sep 17 00:00:00 2001 From: yuliyang Date: Tue, 11 Feb 2020 19:44:09 -0500 Subject: [PATCH] rgw: sts: add all http args to req_info fix https://tracker.ceph.com/issues/44090 Signed-off-by: yuliyang --- src/rgw/rgw_rest_sts.cc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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))); } } } -- 2.39.5