]> git-server-git.apps.pok.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)
committerOr Friedmann <ofriedma@redhat.com>
Tue, 19 May 2020 07:41:28 +0000 (10:41 +0300)
Signed-off-by: Or Friedmann <orfriedma@redhat.com>
src/rgw/rgw_rest_s3.cc

index 24186de794271f36f975117b2ae2cf8b66e25944..3e9538fcbd08984d8c70460c1c67c345073ddc6e 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"
@@ -445,7 +446,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);