diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-12 10:44:16 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-05 10:32:13 +0300 |
commit | b8960354fecdaf0a19a370f00f7caad147c57e62 (patch) | |
tree | fd0156c8e560d3c8754444c9efaf038048c769cf /app/controllers/projects/pipelines_controller.rb | |
parent | a1debf5cf029edc550d7d46eff7ef4ab1b51a2b2 (diff) |
Respond with no content for pipeline JSON actions
Diffstat (limited to 'app/controllers/projects/pipelines_controller.rb')
-rw-r--r-- | app/controllers/projects/pipelines_controller.rb | 8 |
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 |