Skip to content

Commit

Permalink
Fix dapr#161 Add missing JSON DataContentType (dapr#163)
Browse files Browse the repository at this point in the history
Co-authored-by: Ben.li <[email protected]>
Co-authored-by: Yaron Schneider <[email protected]>
  • Loading branch information
3 people authored May 4, 2021
1 parent dea02bd commit aec809a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions client/pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit aec809a

Please sign in to comment.