Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
silver-platter
gitlab-deps
Commits
a2931875
Commit
a2931875
authored
Oct 21, 2018
by
ale
Browse files
Fixed typo (request.header -> request.headers)
parent
dc208696
Changes
1
Hide whitespace changes
Inline
Side-by-side
gitlab_docker_autodep/server.py
View file @
a2931875
...
...
@@ -117,12 +117,12 @@ def run_app(gitlab_url, registry_hostname, gitlab_token,
def
app_webhook
():
# Authenticate the request, if configured to do so.
if
app
.
config
[
'WEBHOOK_AUTH_TOKEN'
]:
token
=
request
.
header
.
get
(
'X-Gitlab-Token'
)
token
=
request
.
header
s
.
get
(
'X-Gitlab-Token'
)
if
token
!=
app
.
config
[
'WEBHOOK_AUTH_TOKEN'
]:
abort
(
401
)
# Ignore non-pipeline events.
ev_type
=
request
.
header
.
get
(
'X-Gitlab-Event'
)
ev_type
=
request
.
header
s
.
get
(
'X-Gitlab-Event'
)
if
ev_type
!=
'Pipeline Hook'
:
app
.
logger
.
info
(
'ignored non-pipeline event with type %s'
%
ev_type
)
return
make_response
(
200
,
[
'{}'
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment