Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix json request type in payload #9

Merged
merged 11 commits into from
Apr 23, 2024
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})
ThiefMaster marked this conversation as resolved.
Show resolved Hide resolved
except HTTPError as e:
self.log_error("Invalid response from notify: %s", str(e))
except ConnectionError as e:
Expand Down
Loading