From 055c9acb891f69a43f45383155a637a605a9d805 Mon Sep 17 00:00:00 2001 From: alxtkr77 <3098237+alxtkr77@users.noreply.github.com> Date: Wed, 28 Dec 2022 11:54:13 +0200 Subject: [PATCH] Force url encode space with '%20' and not '+' (#140) --- pkg/dataplane/http/context.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/dataplane/http/context.go b/pkg/dataplane/http/context.go index 1edf9c2..0824e7c 100755 --- a/pkg/dataplane/http/context.go +++ b/pkg/dataplane/http/context.go @@ -198,7 +198,9 @@ func (c *context) GetContainerContentsSync(getContainerContentsInput *v3io.GetCo var queryBuilder strings.Builder if getContainerContentsInput.Path != "" { queryBuilder.WriteString("prefix=") - queryBuilder.WriteString(url.QueryEscape(getContainerContentsInput.Path)) + encodedPrefix := url.QueryEscape(getContainerContentsInput.Path) + encodedPrefix = strings.Replace(encodedPrefix, "+", "%20", -1) + queryBuilder.WriteString(encodedPrefix) } if getContainerContentsInput.DirectoriesOnly {