Instead of calliing url_decode directly, we reuse s->decoded_uri that is
initialized in RGWREST::preprocess().
Fixes: http://tracker.ceph.com/issues/18590
Signed-off-by: Michal Koutný <mkoutny@suse.com>
/* XXX can we search this ONCE? */
const size_t pos = g_conf->rgw_swift_url_prefix.find_last_not_of('/') + 1;
- boost::string_ref ref_uri = s->info.request_uri;
+ boost::string_ref ref_uri = s->decoded_uri;
const std::array<boost::string_ref, 2> allowed_paths = {
ref_uri,
ref_uri.substr(pos + 1)