Fix bug: encode blob name (#655)

This commit is contained in:
JinmingHu 2020-09-16 11:08:59 +08:00 committed by GitHub
parent 41996ea98f
commit 7584c208ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -27,8 +27,8 @@ namespace Azure { namespace Storage { namespace Blobs {
{
auto parsedConnectionString = Details::ParseConnectionString(connectionString);
auto blobUri = std::move(parsedConnectionString.BlobServiceUri);
blobUri.AppendPath(containerName, true);
blobUri.AppendPath(blobName, true);
blobUri.AppendPath(containerName);
blobUri.AppendPath(blobName);
if (parsedConnectionString.KeyCredential)
{

View File

@ -23,7 +23,7 @@ namespace Azure { namespace Storage { namespace Blobs {
{
auto parsedConnectionString = Details::ParseConnectionString(connectionString);
auto containerUri = std::move(parsedConnectionString.BlobServiceUri);
containerUri.AppendPath(containerName, true);
containerUri.AppendPath(containerName);
if (parsedConnectionString.KeyCredential)
{