From ff982b5fd17dfa82517481e3a3438fdb1792e378 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Fri, 28 Dec 2018 21:27:08 +0000 Subject: [PATCH] add method --- client/rpc_codec.go | 1 + 1 file changed, 1 insertion(+) 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 {