Skip to content

Commit

Permalink
experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
dabasov committed Nov 15, 2023
1 parent 68d4190 commit b6be0b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zboxcore/zboxutil/http.go
Expand Up @@ -824,7 +824,7 @@ func MakeSCRestAPICall(scAddress string, relativePath string, params map[string]
lock.Lock()

urlString := fmt.Sprintf("%v/%v%v%v", sharder, SC_REST_API_URL, scAddress, relativePath)
urlObj, err := url.Parse(urlString)
urlObj, err := url.ParseRequestURI(urlString)
if err != nil {
log.Error(err)
continue
Expand Down Expand Up @@ -958,7 +958,7 @@ func joinUrl(baseURl string, paths ...string) (*url.URL, error) {
lock.Lock()
defer lock.Unlock()

u, err := url.Parse(baseURl)
u, err := url.ParseRequestURI(baseURl)
if err != nil {
log.Error(err)
return nil, err
Expand Down

0 comments on commit b6be0b5

Please sign in to comment.