5
0
Fork 0
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

This commit is contained in:
jazzari 2023-08-16 14:57:01 -03:00
parent 35dca9d756
commit cefd053d1d

View file

@ -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