From b754c335491a6d583f0c8324b488b35e8cd957aa Mon Sep 17 00:00:00 2001 From: johnson Date: Tue, 18 Jun 2019 17:07:31 +0800 Subject: [PATCH] grpc message should be able to set --- client/grpc/grpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/grpc/grpc.go b/client/grpc/grpc.go index 9ed206c6..555fed0e 100644 --- a/client/grpc/grpc.go +++ b/client/grpc/grpc.go @@ -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 {