Skip to content

Commit

Permalink
fallback for 0.14.0 and older
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Feb 1, 2019
1 parent 88e1234 commit c03d935
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/rpc_codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ func (c *rpcCodec) ReadHeader(r *codec.Message, t codec.MessageType) error {
return err
}

// fallback for 0.14 and older
if len(m.Endpoint) == 0 {
m.Endpoint = m.Method
}

// set message
*r = m

Expand Down

0 comments on commit c03d935

Please sign in to comment.