From ebbbf7827a4c5387bcaa9f9b1635132cf9de6cef Mon Sep 17 00:00:00 2001 From: Alexander PapaTutuWawa Date: Thu, 16 Sep 2021 16:42:30 +0200 Subject: [PATCH] xmpp: Fix webhook with no Content-Type --- xmpp_discord_bridge/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xmpp_discord_bridge/main.py b/xmpp_discord_bridge/main.py index 65d2c8e..1f702c3 100644 --- a/xmpp_discord_bridge/main.py +++ b/xmpp_discord_bridge/main.py @@ -262,7 +262,10 @@ class BridgeComponent(ComponentXMPP): }] requests.post(self._webhooks[muc], - data=webhook) + data=webhook, + headers={ + "Content-Type": "application/json" + }) def virtual_user_update_presence(self, muc, uid, pshow, pstatus=None): """