From 73b7d998c0b3db84d39434191e5aff884ce66aa2 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Wed, 27 Oct 2021 13:13:33 +0300 Subject: [PATCH] fix Header and Cookie fill Signed-off-by: Vasiliy Tolstov --- http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http.go b/http.go index 5c14940..8e843df 100644 --- a/http.go +++ b/http.go @@ -166,7 +166,7 @@ func newRequest(ctx context.Context, addr string, req client.Request, ct string, for km, vm := range parameters { for k, required := range vm { - v, err = rutil.StructFieldByPath(nmsg, k) + v, err = rutil.StructFieldByPath(msg, k) if err != nil { return nil, errors.BadRequest("go.micro.client", err.Error()) }