From 106c42fe84404db97fc58f6b68361e313ee3f3f9 Mon Sep 17 00:00:00 2001 From: Paulo Vilarinho Date: Wed, 30 Dec 2020 16:06:50 -0300 Subject: [PATCH] remove xml format --- app/controllers/api/base_controller.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/controllers/api/base_controller.rb b/app/controllers/api/base_controller.rb index 493b13665e..5da8a06be2 100644 --- a/app/controllers/api/base_controller.rb +++ b/app/controllers/api/base_controller.rb @@ -63,13 +63,7 @@ module Api end def set_content_type - content_type = case params[:format] - when "json" - "application/json" - when "xml" - "text/xml" - end - headers["Content-Type"] = content_type + headers["Content-Type"] = "application/json" end def error_during_processing(exception)