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.
This commit is contained in:
Tom Hughes 2012-11-01 09:13:43 +00:00
parent c94e059d2d
commit 59c97f4866

View file

@ -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