url.QueryEscape fix2

This commit is contained in:
Pavel Dmitriev 2024-05-15 17:22:54 +03:00
parent a18920d818
commit 2420a73796
1 changed files with 2 additions and 2 deletions

4
api.go
View File

@ -121,10 +121,10 @@ func UrlEncode(s any) string {
} else {
rv += "?"
}
rv += fmt.Sprintf("%s=%s", tag.FieldName, fmt.Sprint(val))
rv += fmt.Sprintf("%s=%s", tag.FieldName, url.QueryEscape(fmt.Sprint(val)))
rvCount++
}
}
return url.QueryEscape(rv)
return rv
}