Commit af41947a authored by ale's avatar ale

Invoke make_response() with the right args

parent a2931875
......@@ -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('{}')
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