fix error

This commit is contained in:
nauu 2024-11-11 20:25:57 +08:00
parent 6a8df5ea89
commit 33f9e8bc2e

View File

@ -117,7 +117,7 @@ URI::URI(const std::string & uri_, bool allow_archive_path_syntax)
is_virtual_hosted_style = true;
if (name == "oss-data-acc")
{
bucket = bucket.substr(0, bucket.find("."));
bucket = bucket.substr(0, bucket.find('.'));
endpoint = uri.getScheme() + "://" + uri.getHost().substr(bucket.length() + 1);
}
else