fix grpc json streaming by setting content sub type (#1089)

This commit is contained in:
Asim Aslam
2020-01-07 18:37:34 +00:00
committed by Vasiliy Tolstov
parent 7d5e31cd58
commit 8c86ad526f
2 changed files with 4 additions and 2 deletions

View File

@@ -207,7 +207,7 @@ func (g *grpcClient) stream(ctx context.Context, node *registry.Node, req client
ServerStreams: true,
}
grpcCallOptions := []grpc.CallOption{}
grpcCallOptions := []grpc.CallOption{grpc.CallContentSubtype(cf.Name())}
if opts := g.getGrpcCallOptions(); opts != nil {
grpcCallOptions = append(grpcCallOptions, opts...)
}