Commit a2931875 authored by ale's avatar ale
Browse files

Fixed typo (request.header -> request.headers)

parent dc208696
......@@ -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.headers.get('X-Gitlab-Token')
if token != app.config['WEBHOOK_AUTH_TOKEN']:
# Ignore non-pipeline events.
ev_type = request.header.get('X-Gitlab-Event')
ev_type = request.headers.get('X-Gitlab-Event')
if ev_type != 'Pipeline Hook':'ignored non-pipeline event with type %s' % ev_type)
return make_response(200, ['{}'])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment