Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
micro/micro#293
Send request failed using micro Content-Type application/grpc+json
  • Loading branch information
three-zhang committed Jul 27, 2019
1 parent 4e27aac commit 100cb9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/grpc/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (g *grpcClient) call(ctx context.Context, node *registry.Node, req client.R
ch := make(chan error, 1)

go func() {
err := cc.Invoke(ctx, methodToGRPC(req.Service(), req.Endpoint()), req.Body(), rsp, grpc.ForceCodec(cf))
err := cc.Invoke(ctx, methodToGRPC(req.Service(), req.Endpoint()), req.Body(), rsp, grpc.CallContentSubtype(cf.Name()))
ch <- microError(err)
}()

Expand Down

0 comments on commit 100cb9d

Please sign in to comment.