fix path query requests with templates

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2021-09-23 08:58:55 +03:00
parent 5dc57579c3
commit 4fe11b430e

View File

@ -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)
}