From 4a9941e734a56bf5aa0d14a411906277e9f4aba0 Mon Sep 17 00:00:00 2001 From: Lee Lawlor Date: Wed, 26 Mar 2014 13:16:09 -0400 Subject: [PATCH] fix status response with blank format --- app/controllers/feed_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/feed_controller.rb b/app/controllers/feed_controller.rb index 669e01d..f85a3b3 100644 --- a/app/controllers/feed_controller.rb +++ b/app/controllers/feed_controller.rb @@ -194,7 +194,7 @@ class FeedController < ApplicationController output = @feed.to_xml elsif params[:format] == 'csv' @csv_headers = Feed.select_options(@channel, params) - elsif (params[:format] == 'txt' || params[:format] == 'text' || params[:format] == 'html') + elsif (params[:format] == 'txt' || params[:format] == 'text' || params[:format] == 'html' || params[:format].blank?) output = add_prepend_append(@feed["field#{params[:field_id]}"]) else output = @feed.to_json