From: Or Friedmann Date: Wed, 13 May 2020 10:04:41 +0000 (+0300) Subject: use ceph::split X-Git-Tag: v15.2.5~52^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=beacbc5bf8def2566ddf2bbbfe14cafb1bebce34;p=ceph.git use ceph::split Signed-off-by: Or Friedmann (cherry picked from commit 737e1aa95686d8c4a429cac9ea5f388bcda04bac) --- diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index e3c8025e516..d8073e04a2b 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -6,6 +6,7 @@ #include #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);