Convert XML document to a string when returning it

Otherwise the Rak::ETag module will throw an exception when it
tries to test if the response is empty.
This commit is contained in:
Tom Hughes 2017-06-13 12:55:13 +01:00
parent 13aae29476
commit ea9a4c2aa2

View file

@ -244,7 +244,7 @@ class ChangesetController < ApplicationController
check_changeset_consistency(changeset, @user)
changeset.update_from(new_changeset, @user)
render :xml => changeset.to_xml
render :xml => changeset.to_xml.to_s
end
##