diff --git a/client/rpc_codec.go b/client/rpc_codec.go index 87f6a4bd..ea71f2df 100644 --- a/client/rpc_codec.go +++ b/client/rpc_codec.go @@ -113,6 +113,7 @@ func (c *rpcPlusCodec) WriteRequest(req *request, body interface{}) error { Type: codec.Request, Header: map[string]string{ "X-Micro-Target": req.Service, + "X-Micro-Method": req.ServiceMethod, }, } if err := c.codec.Write(m, body); err != nil {