Commit b8960354 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Respond with no content for pipeline JSON actions

parent a1debf5c
......@@ -97,9 +97,7 @@ class Projects::PipelinesController < Projects::ApplicationController
redirect_back_or_default default: namespace_project_pipelines_path(project.namespace, project)
end
format.json do
render status: 204
end
format.json { head :no_content }
end
end
......@@ -111,9 +109,7 @@ class Projects::PipelinesController < Projects::ApplicationController
redirect_back_or_default default: namespace_project_pipelines_path(project.namespace, project)
end
format.json do
render status: 204
end
format.json { head :no_content }
end
end
......
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