mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 23:21:41 +00:00
fix: consistencia al llamar a headers
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
a2678c3e81
commit
ef8ed271d7
1 changed files with 3 additions and 3 deletions
|
@ -38,10 +38,10 @@ module Api
|
||||||
request.headers['X-Gitlab-Token']
|
request.headers['X-Gitlab-Token']
|
||||||
# Github
|
# Github
|
||||||
elsif request.headers['X-Hub-Signature-256'].present?
|
elsif request.headers['X-Hub-Signature-256'].present?
|
||||||
token_from_signature(request.headers['X_Hub_Signature_256'], 'sha256=')
|
token_from_signature(request.headers['X-Hub-Signature-256'], 'sha256=')
|
||||||
# Gitea
|
# Gitea
|
||||||
elsif request.headers['X_Gitea_Signature'].present?
|
elsif request.headers['X-Gitea-Signature'].present?
|
||||||
token_from_signature(request.headers['X_Gitea_Signature'])
|
token_from_signature(request.headers['X-Gitea-Signature'])
|
||||||
else
|
else
|
||||||
raise ActiveRecord::RecordNotFound, 'proveedor no soportado'
|
raise ActiveRecord::RecordNotFound, 'proveedor no soportado'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue