From 59c97f4866652c025ec4f61cabcaaedd3124ab33 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 1 Nov 2012 09:13:43 +0000 Subject: [PATCH 1/1] Add a newline to the end of the body when reporting an error There seems to be some sort problem with ruby 1.9 where a response body that is a single line with no newline causes the response not to be sent properly. --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 70a635404..a0e0e20dc 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -243,7 +243,7 @@ class ApplicationController < ActionController::Base render :text => result.to_s, :content_type => "text/xml" else - render :text => message, :status => status + render :text => message + "\n", :status => status end end -- 2.43.2