jobsite/manager: PathEscape URL parameter.

This commit is contained in:
Simon de Vlieger 2024-02-08 23:10:58 +01:00 committed by Sanne Raymaekers
parent 2a422321e5
commit 401cb01c8d

View file

@ -9,6 +9,7 @@ import (
"fmt"
"io"
"net/http"
"net/url"
"os"
"os/signal"
"path"
@ -347,7 +348,7 @@ func StepProgress() error {
func StepExport() error {
return Wait(argTimeoutExport, func(done chan<- struct{}, errs chan<- error) {
for _, export := range argExports {
res, err := Request("GET", fmt.Sprintf("export?path=%s", export), []byte(""))
res, err := Request("GET", fmt.Sprintf("export?path=%s", url.PathEscape(export)), []byte(""))
if err != nil {
errs <- err