mirror of
https://github.com/ceph/ceph
synced 2025-02-23 02:57:21 +00:00
Merge pull request #40563 from BryceCao/wip_add_check_for_sync_url
rgw : add check empty for sync url Reviewed-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
commit
c48fe06e3f
@ -813,7 +813,7 @@ int RGWRESTStreamRWRequest::do_send_prepare(const DoutPrefixProvider *dpp, RGWAc
|
||||
bufferlist *send_data)
|
||||
{
|
||||
string new_url = url;
|
||||
if (new_url[new_url.size() - 1] != '/')
|
||||
if (!new_url.empty() && new_url.back() != '/')
|
||||
new_url.append("/");
|
||||
|
||||
string new_resource;
|
||||
|
Loading…
Reference in New Issue
Block a user