Skip to content

Commit

Permalink
encode message after json dump (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoQuote authored Sep 14, 2023
1 parent 691d392 commit 448038a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpdesk/libs/notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ async def send(self):
if not WEBHOOK_EVENT_URL:
return
message = self.render()
r = requests.post(WEBHOOK_EVENT_URL, message.model_dump_json())
r = requests.post(WEBHOOK_EVENT_URL, data=message.model_dump_json().encode("utf-8"))
if r.status_code == 200:
return
else:
Expand Down

0 comments on commit 448038a

Please sign in to comment.