From a18920d81837d9464a44bf29ee1436b269054518 Mon Sep 17 00:00:00 2001 From: Pavel Dmitriev Date: Wed, 15 May 2024 17:20:29 +0300 Subject: [PATCH] url.QueryEscape added for UrlEncode --- api.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api.go b/api.go index 55a9dc2..bf7c69b 100644 --- a/api.go +++ b/api.go @@ -5,6 +5,7 @@ import ( "fmt" "io" "net/http" + "net/url" "reflect" "strings" "time" @@ -125,5 +126,5 @@ func UrlEncode(s any) string { } } - return rv + return url.QueryEscape(rv) }