Fix #161 Add missing JSON DataContentType (#163)

Co-authored-by: Ben.li <ben.li@shapejoy.com>
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
This commit is contained in:
2021-05-05 00:03:22 +08:00 committed by GitHub
parent dea02bd1e3
commit aec809a7d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -47,9 +47,10 @@ func (c *GRPCClient) PublishEventfromCustomContent(ctx context.Context, pubsubNa
}
envelop := &pb.PublishEventRequest{
PubsubName: pubsubName,
Topic: topicName,
Data: bytes,
PubsubName: pubsubName,
Topic: topicName,
Data: bytes,
DataContentType: "application/json",
}
_, err = c.protoClient.PublishEvent(c.withAuthToken(ctx), envelop)