From f80ac8e9f0163de58e25db7035648e222645f65c Mon Sep 17 00:00:00 2001 From: tsymq-live <103803861+tsymq-live@users.noreply.github.com> Date: Sat, 14 Oct 2023 00:24:11 +0800 Subject: [PATCH] Update __init__.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 解决gogs webhook 验证失败的问题 需要带上参数post=1来强制使用post --- route/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route/__init__.py b/route/__init__.py index 00fb9cbfa7..410931fe6d 100755 --- a/route/__init__.py +++ b/route/__init__.py @@ -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()