Skip to content

Commit

Permalink
grpc message should be able to set
Browse files Browse the repository at this point in the history
  • Loading branch information
xpunch committed Jun 18, 2019
1 parent 59eaa89 commit b754c33
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 @@ -280,7 +280,7 @@ func (g *grpcClient) Options() client.Options {
}

func (g *grpcClient) NewMessage(topic string, msg interface{}, opts ...client.MessageOption) client.Message {
return newGRPCPublication(topic, msg, "application/octet-stream")
return newGRPCPublication(topic, msg, g.opts.ContentType, opts...)
}

func (g *grpcClient) NewRequest(service, method string, req interface{}, reqOpts ...client.RequestOption) client.Request {
Expand Down

0 comments on commit b754c33

Please sign in to comment.