Skip to content

Commit

Permalink
set proper content type for published messages
Browse files Browse the repository at this point in the history
  • Loading branch information
maxjoehnk committed Nov 12, 2021
1 parent b851f51 commit 33305fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export class Transport extends EventEmitter implements Transport {
if (this.channel) {
let channel = this.channel;
return new Promise((resolve, reject) => {
const result = channel.publish(exchange, routingKey, body, {persistent: true},
const result = channel.publish(exchange, routingKey, body, {persistent: true, contentType: "application/vnd.masstransit+json"},
err => {
if (err) {
reject(err);
Expand Down

0 comments on commit 33305fd

Please sign in to comment.