add method

This commit is contained in:
Asim Aslam 2018-12-28 21:27:08 +00:00
parent 28324412a4
commit ff982b5fd1

View File

@ -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 {