Skip to content

Commit

Permalink
Fix json request type in payload (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshpme authored Apr 23, 2024
1 parent 930364e commit 3f09f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openreferee_server/notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def log_error(self, *args):

def send(self, payload):
try:
self.session.post(self.url, data=json.dumps({"payload": payload}))
self.session.post(self.url, json={"payload": payload})
except HTTPError as e:
self.log_error("Invalid response from notify: %s", str(e))
except ConnectionError as e:
Expand Down

0 comments on commit 3f09f60

Please sign in to comment.