Skip to content
Snippets Groups Projects
Commit 69b86d7e authored by Charlotte Hausman's avatar Charlotte Hausman
Browse files

make sure to encode image precursor url input properly

parent cf2e72b9
No related branches found
No related tags found
1 merge request!1317Fix ingest seci
......@@ -26,6 +26,7 @@ import (
"io"
"io/ioutil"
"net/http"
"net/url"
"path/filepath"
)
......@@ -38,6 +39,7 @@ type CapoInput struct {
CapoProfile string
}
//checkError
/**
* Check if an error happened and panic on it if so
*
......@@ -79,7 +81,7 @@ func GetCalibrationLocator(imgSetPath string, input CapoInput) string {
imgSet := filepath.Base(imgSetPath)
// Make the REST call
lookupUrl := locatorEndpoint + imgSet
lookupUrl := locatorEndpoint + url.QueryEscape(imgSet)
resp, err := http.Get(lookupUrl)
checkError(err)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment