xmpp: Fix webhook with no Content-Type

This commit is contained in:
PapaTutuWawa 2021-09-16 16:42:30 +02:00
parent 0e60c8c8e0
commit ebbbf7827a

View File

@ -262,7 +262,10 @@ class BridgeComponent(ComponentXMPP):
}] }]
requests.post(self._webhooks[muc], 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): def virtual_user_update_presence(self, muc, uid, pshow, pstatus=None):
""" """