]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: don't append headers twice
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 10 Apr 2018 22:25:49 +0000 (15:25 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Wed, 25 Apr 2018 16:03:53 +0000 (09:03 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_rest_client.cc

index ea3dedf196b73933d2932f13401d2b29655e61a3..b56e633838e3bbfd350db20ded53e44d82991039 100644 (file)
@@ -534,10 +534,6 @@ int RGWRESTStreamS3PutObj::send_ready(RGWAccessKey& key, const map<string, strin
     }
   }
 
-  for (const auto& kv: new_env.get_map()) {
-    headers.emplace_back(kv);
-  }
-
   /* update acl headers */
   RGWAccessControlList& acl = policy.get_acl();
   multimap<string, ACLGrant>& grant_map = acl.get_grant_map();