From 2420a73796f546e1ca9c9b39947b24973b13857e Mon Sep 17 00:00:00 2001 From: Pavel Dmitriev Date: Wed, 15 May 2024 17:22:54 +0300 Subject: [PATCH] url.QueryEscape fix2 --- api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.go b/api.go index bf7c69b..a218c51 100644 --- a/api.go +++ b/api.go @@ -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 }