From b6cfe010a16038c09509d6b1d88fa77ca0573f56 Mon Sep 17 00:00:00 2001 From: Stephen Atherton Date: Tue, 12 Dec 2017 17:31:19 -0800 Subject: [PATCH] Bug fix in URL encoding of delimiter. --- fdbrpc/BlobStore.actor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdbrpc/BlobStore.actor.cpp b/fdbrpc/BlobStore.actor.cpp index 5d5100592a..02f3801c3f 100644 --- a/fdbrpc/BlobStore.actor.cpp +++ b/fdbrpc/BlobStore.actor.cpp @@ -451,7 +451,7 @@ ACTOR Future listBucketStream_impl(Reference 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;