From f33a4ebd9aa08d8b6a4b4705a5f5798c3e7bf79a Mon Sep 17 00:00:00 2001 From: Martin Kluson Date: Jan 30 2018 14:43:25 +0000 Subject: UMB: adding content type Adding content type text/json to Stomp.Connection.send call. Other systems like Jenkins or Datagrepper should be able to catch these messages now. --- diff --git a/backend/backend/msgbus.py b/backend/backend/msgbus.py index e1b087b..50e9a73 100644 --- a/backend/backend/msgbus.py +++ b/backend/backend/msgbus.py @@ -189,7 +189,8 @@ class MsgBusStomp(MsgBus): send_headers = copy.deepcopy(headers) send_headers['topic'] = topic self.conn.send(body=json.dumps(body), headers=send_headers, - destination=self.opts.destination) + destination=self.opts.destination, + content_type='text/json') class MsgBusFedmsg(MsgBus):