add method
This commit is contained in:
parent
28324412a4
commit
ff982b5fd1
@ -113,6 +113,7 @@ func (c *rpcPlusCodec) WriteRequest(req *request, body interface{}) error {
|
|||||||
Type: codec.Request,
|
Type: codec.Request,
|
||||||
Header: map[string]string{
|
Header: map[string]string{
|
||||||
"X-Micro-Target": req.Service,
|
"X-Micro-Target": req.Service,
|
||||||
|
"X-Micro-Method": req.ServiceMethod,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
if err := c.codec.Write(m, body); err != nil {
|
if err := c.codec.Write(m, body); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user