1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-12 22:07:47 +02:00

Fix client rpc codec

This commit is contained in:
Asim
2015-10-16 11:15:17 +01:00
parent 0adc0e3c00
commit 6b8855a337
2 changed files with 42 additions and 31 deletions

View File

@ -37,14 +37,14 @@ func (rwc *readWriteCloser) Close() error {
}
func newRpcPlusCodec(req *transport.Message, socket transport.Socket) rpc.ServerCodec {
r := &rpcPlusCodec{
socket: socket,
req: req,
r := &rpcPlusCodec{
socket: socket,
req: req,
buf: &readWriteCloser{
rbuf: bytes.NewBuffer(req.Body),
wbuf: bytes.NewBuffer(nil),
},
}
}
switch req.Header["Content-Type"] {
case "application/octet-stream":