]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
use ceph::split
authorOr Friedmann <ofriedma@redhat.com>
Wed, 13 May 2020 10:04:41 +0000 (13:04 +0300)
committerNathan Cutler <ncutler@suse.com>
Sat, 15 Aug 2020 12:59:07 +0000 (14:59 +0200)
Signed-off-by: Or Friedmann <orfriedma@redhat.com>
(cherry picked from commit 737e1aa95686d8c4a429cac9ea5f388bcda04bac)

src/rgw/rgw_rest_s3.cc

index e3c8025e516833434a6306d47c8b874e737fb7e5..d8073e04a2be3c78ea673001c89c07a02ff2580d 100644 (file)
@@ -6,6 +6,7 @@
 #include <string.h>
 
 #include "common/ceph_crypto.h"
+#include "common/split.h"
 #include "common/Formatter.h"
 #include "common/utf8.h"
 #include "common/ceph_json.h"
@@ -472,7 +473,7 @@ int RGWGetObj_ObjStore_S3::override_range_hdr(const rgw::auth::StrategyRegistry&
     std::string key = "HTTP_";
     key.append(*k);
     boost::replace_all(key, "-", "_");
-    rgw_env->set(std::move(key), *v);
+    rgw_env->set(std::move(key), std::string(*v));
     ldpp_dout(this,2) << "after splitting cache kv key: " << key  << " " << rgw_env->get(key.c_str())  << dendl;
   }
   ret = RGWOp::verify_requester(auth_registry);