From b0fc7665e5b46584d403cf3375d4293eee708890 Mon Sep 17 00:00:00 2001 From: Xavier J Date: Mon, 22 Feb 2016 15:20:58 +0100 Subject: [PATCH] fix API V1 default format --- app/controllers/api_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb index bf471b3ba..410f1c103 100644 --- a/app/controllers/api_controller.rb +++ b/app/controllers/api_controller.rb @@ -17,6 +17,6 @@ class APIController < ApplicationController end def default_format_json - request.format = "json" unless request.accept + request.format = "json" unless request.params[:format] end end \ No newline at end of file