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