Skip to content

Commit

Permalink
Force url encode space with '%20' and not '+' (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxtkr77 authored Dec 28, 2022
1 parent ce22bf2 commit 055c9ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/dataplane/http/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 055c9ac

Please sign in to comment.