1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-18 22:17:44 +02:00

fix log streaming

This commit is contained in:
Asim Aslam
2020-01-02 18:23:43 +00:00
parent e697912ee5
commit 225b17559b
3 changed files with 7 additions and 2 deletions

View File

@ -346,7 +346,9 @@ func (router *router) readRequest(r Request) (service *service, mtype *methodTyp
}
// is it a streaming request? then we don't read the body
if mtype.stream {
cc.ReadBody(nil)
if cc.(codec.Codec).String() != "grpc" {
cc.ReadBody(nil)
}
return
}