mirror of
https://github.com/go-micro/go-micro.git
synced 2025-08-10 21:52:01 +02:00
add method
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user