From 669b9fc5ecd421cb9ab4bf3baaa843a5a55c8948 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Fri, 11 Sep 2015 13:11:39 -0400 Subject: [PATCH] rgw: RGWRESTSimpleRequest::forward_request params forward_request() uses new_info.build_from(info) to initialize the new request info. but this doesn't copy the RGWHTTPArgs, so any parameters associated with info are dropped it later uses new_info.args.get_params() to generate the params_str, but no code in between adds any parameters to new_info. so use info.args.get_params() instead to keep any parameters from the original request info Signed-off-by: Casey Bodley --- src/rgw/rgw_rest_client.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rgw/rgw_rest_client.cc b/src/rgw/rgw_rest_client.cc index 0c1ed25740040..3c227f0c38563 100644 --- a/src/rgw/rgw_rest_client.cc +++ b/src/rgw/rgw_rest_client.cc @@ -233,8 +233,7 @@ int RGWRESTSimpleRequest::forward_request(RGWAccessKey& key, req_info& info, siz } string params_str; - map& args = new_info.args.get_params(); - get_params_str(args, params_str); + get_params_str(info.args.get_params(), params_str); string new_url = url; string& resource = new_info.request_uri; -- 2.39.5