]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: sts: add all http args to req_info
authoryuliyang <yuliyang@cmss.chinamobile.com>
Wed, 12 Feb 2020 00:44:09 +0000 (19:44 -0500)
committeryuliyang <yuliyang@cmss.chinamobile.com>
Wed, 12 Feb 2020 00:44:09 +0000 (19:44 -0500)
fix https://tracker.ceph.com/issues/44090

Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
src/rgw/rgw_rest_sts.cc

index 75022cdc84e314a9f85e42fe14225714425b3f6b..27715e57b0b53a8bd28b56b477b13317ca821bd9 100644 (file)
@@ -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)));
         }
       }
     }