Skip to content

Commit

Permalink
Merge pull request #1 from EmpregoLigado/aa-message-type
Browse files Browse the repository at this point in the history
Set message content-type default to 'application/json'
  • Loading branch information
aalvesjr authored Aug 16, 2017
2 parents bad5503 + ac3b3fc commit 7b8529a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/event_bus/broker/rabbit/topic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def self.produce(connection, event)
end

def produce(event)
topic.publish(event.payload, routing_key: event.name)
topic.publish(event.payload, routing_key: event.name,
content_type: 'application/json')
end

private
Expand Down
2 changes: 1 addition & 1 deletion lib/event_bus/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module EventBus
VERSION = '1.0.1'
VERSION = '1.1.0'
end

0 comments on commit 7b8529a

Please sign in to comment.