mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 16:41:42 +00:00
fix: add condition in elsif in token method #13903
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
35dca9d756
commit
cefd053d1d
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ module Api
|
||||||
elsif request.headers['X-HUB-SIGNATURE-256']
|
elsif request.headers['X-HUB-SIGNATURE-256']
|
||||||
token_from_signature(request.env['HTTP_X_HUB_SIGNATURE_256'])
|
token_from_signature(request.env['HTTP_X_HUB_SIGNATURE_256'])
|
||||||
# Gitea
|
# Gitea
|
||||||
elsif
|
elsif request.headers['HTTP_X_GITEA_SIGNATURE']
|
||||||
token_from_signature(request.env['HTTP_X_GITEA_SIGNATURE'])
|
token_from_signature(request.env['HTTP_X_GITEA_SIGNATURE'])
|
||||||
else
|
else
|
||||||
raise ActiveRecord::RecordNotFound
|
raise ActiveRecord::RecordNotFound
|
||||||
|
|
Loading…
Reference in a new issue