Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
解决gogs webhook 验证失败的问题

需要带上参数post=1来强制使用post
  • Loading branch information
tsymq-live authored Oct 13, 2023
1 parent 78049fa commit f80ac8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion route/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def webhook():
'params': request.args.get('params', '').strip()
}

if request.method == 'POST':
if request.method == 'POST' and request.args.get('post', ''):
input_args = {
'access_key': request.form.get('access_key', '').strip(),
'params': request.form.get('params', '').strip()
Expand Down

0 comments on commit f80ac8e

Please sign in to comment.