Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix/parse hostname error #1241

Merged
merged 13 commits into from
Nov 11, 2023
6 changes: 5 additions & 1 deletion zboxcore/zboxutil/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,11 @@ func MakeSCRestAPICall(scAddress string, relativePath string, params map[string]
go func(sharder string) {
defer wg.Done()
urlString := fmt.Sprintf("%v/%v%v%v", sharder, SC_REST_API_URL, scAddress, relativePath)
urlObj, _ := url.Parse(urlString)
urlObj, err := url.Parse(urlString)
if err != nil {
log.Error(err)
return
}
q := urlObj.Query()
for k, v := range params {
q.Add(k, v)
Expand Down
Loading