Bug fix in URL encoding of delimiter.

This commit is contained in:
Stephen Atherton 2017-12-12 17:31:19 -08:00
parent 4bc7d0b86a
commit b6cfe010a1
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,7 @@ ACTOR Future<Void> listBucketStream_impl(Reference<BlobStoreEndpoint> bstore, st
if(prefix.present())
resource.append("&prefix=").append(HTTP::urlEncode(prefix.get()));
if(delimiter.present())
resource.append("&delimiter=").append(HTTP::urlEncode(std::string(delimiter.get(), 1)));
resource.append("&delimiter=").append(HTTP::urlEncode(std::string(1, delimiter.get())));
resource.append("&marker=");
state std::string lastFile;
state bool more = true;