We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a1ea20 commit 3c45e82Copy full SHA for 3c45e82
1 file changed
github_webhook/webhook.py
@@ -73,8 +73,9 @@ async def _postreceive(self):
73
74
event_type = _get_header("X-Github-Event")
75
content_type = _get_header("content-type")
76
+ form_data = await request.form
77
data = (
- json.loads(request.form.to_dict(flat=True)["payload"])
78
+ json.loads(form_data.to_dict(flat=True)["payload"])
79
if content_type == "application/x-www-form-urlencoded"
80
else request.get_json()
81
)
0 commit comments