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:
parent
c94e059d2d
commit
59c97f4866
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue