use QueryEscape instead of PathEscape

pull/15/head
Brad Rydzewski 3 years ago
parent a355bc607b
commit ce057a1aa2

@ -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)

Loading…
Cancel
Save