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
af41947a
Commit
af41947a
authored
Oct 21, 2018
by
ale
Browse files
Invoke make_response() with the right args
parent
a2931875
Changes
1
Hide whitespace changes
Inline
Side-by-side
gitlab_docker_autodep/server.py
View file @
af41947a
...
...
@@ -125,9 +125,8 @@ def app_webhook():
ev_type
=
request
.
headers
.
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
,
[
'{}'
])
else
:
# Send request to worker threads for processing.
queue
.
put
(
request
.
json
)
# Send request to worker threads for processing.
queue
.
put
(
request
.
json
)
return
make_response
(
200
,
[
'{}'
])
return
make_response
(
'{}'
)
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