From 4fe11b430e4a9a1f296c38fc98685f391979441b Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Thu, 23 Sep 2021 08:58:55 +0300 Subject: [PATCH] fix path query requests with templates Signed-off-by: Vasiliy Tolstov --- http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http.go b/http.go index 579019c..6e92c79 100644 --- a/http.go +++ b/http.go @@ -90,7 +90,7 @@ func newRequest(ctx context.Context, addr string, req client.Request, ct string, var nmsg interface{} if len(u.Query()) > 0 { - path, nmsg, err = newPathRequest(u.Path+"?"+u.Query().Encode(), method, body, msg, tags) + path, nmsg, err = newPathRequest(u.Path+"?"+u.RawQuery, method, body, msg, tags) } else { path, nmsg, err = newPathRequest(u.Path, method, body, msg, tags) }