Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-12 10:44:16 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-05 10:32:13 +0300
commitb8960354fecdaf0a19a370f00f7caad147c57e62 (patch)
treefd0156c8e560d3c8754444c9efaf038048c769cf /app
parenta1debf5cf029edc550d7d46eff7ef4ab1b51a2b2 (diff)
Respond with no content for pipeline JSON actions
Diffstat (limited to 'app')
-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