From ce057a1aa288eff23cc35bd795eeac03468c93d9 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Fri, 24 Sep 2021 17:14:16 -0400 Subject: [PATCH] use QueryEscape instead of PathEscape --- client/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/http.go b/client/http.go index ea4fcb8..d7d72a2 100644 --- a/client/http.go +++ b/client/http.go @@ -100,7 +100,7 @@ func (p *HTTPClient) Request(ctx context.Context, args *Filter) (*drone.Stage, e // Accept accepts the build stage for execution. func (p *HTTPClient) Accept(ctx context.Context, stage *drone.Stage) error { - uri := fmt.Sprintf(endpointStage+"?machine=%s", stage.ID, url.PathEscape(stage.Machine)) + uri := fmt.Sprintf(endpointStage+"?machine=%s", stage.ID, url.QueryEscape(stage.Machine)) src := stage dst := new(drone.Stage) _, err := p.retry(ctx, uri, "POST", nil, dst)