Skip to content

Commit

Permalink
cogito: properly encode spaces in url
Browse files Browse the repository at this point in the history
  • Loading branch information
aliculPix4D committed Mar 22, 2024
1 parent 7f0abe2 commit 25b40aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cogito/putter.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ func concourseBuildURL(env Environment) string {
// https://ci.example.com/teams/main/pipelines/cogito/jobs/autocat/builds/3?vars=%7B%22branch%22%3A%22stable%22%7D
if env.BuildPipelineInstanceVars != "" {
buildURL += fmt.Sprintf("?vars=%s", url.QueryEscape(env.BuildPipelineInstanceVars))
buildURL = strings.ReplaceAll(buildURL, "+", "%20")
}

return buildURL
Expand Down

0 comments on commit 25b40aa

Please sign in to comment.