fix path query requests with templates
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
5dc57579c3
commit
4fe11b430e
2
http.go
2
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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user