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