From 9764a0af8d6ae0005f896074d73f45464160ffea Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Thu, 1 Feb 2018 17:49:19 +0100 Subject: [PATCH] Add back content_type I forgot to specify it in 7ccae2c4f1a4335030239b0417c46ac6e8af700b --- app/controllers/ping_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/ping_controller.rb b/app/controllers/ping_controller.rb index f8697379b..2ac9e20ff 100644 --- a/app/controllers/ping_controller.rb +++ b/app/controllers/ping_controller.rb @@ -2,9 +2,9 @@ class PingController < ApplicationController def index Rails.logger.silence do if (ActiveRecord::Base.connected?) - head :ok + head :ok, content_type: "application/json" else - head :internal_server_error + head :internal_server_error, content_type: "application/json" end end end