jobsite/manager: PathEscape URL parameter.
This commit is contained in:
parent
2a422321e5
commit
401cb01c8d
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue