From b8960354fecdaf0a19a370f00f7caad147c57e62 Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Wed, 12 Apr 2017 09:44:16 +0200 Subject: [PATCH] Respond with no content for pipeline JSON actions --- app/controllers/projects/pipelines_controller.rb | 8 ++------ 1 file 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