summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-12 09:44:16 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-05 09:32:13 +0200
commitb8960354fecdaf0a19a370f00f7caad147c57e62 (patch)
treefd0156c8e560d3c8754444c9efaf038048c769cf
parenta1debf5cf029edc550d7d46eff7ef4ab1b51a2b2 (diff)
downloadgitlab-ce-b8960354fecdaf0a19a370f00f7caad147c57e62.tar.gz
Respond with no content for pipeline JSON actions
-rw-r--r--app/controllers/projects/pipelines_controller.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/app/controllers/projects/pipelines_controller.rb b/app/controllers/projects/pipelines_controller.rb
index 6d77b9c38fa..95478da019e 100644
--- a/app/controllers/projects/pipelines_controller.rb
+++ b/app/controllers/projects/pipelines_controller.rb
@@ -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