From: Tom Hughes Date: Tue, 13 Jun 2017 11:55:13 +0000 (+0100) Subject: Convert XML document to a string when returning it X-Git-Tag: live~3363 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/ea9a4c2aa28a89386a1b0d118d7492e4f70990c2?ds=sidebyside 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. --- diff --git a/app/controllers/changeset_controller.rb b/app/controllers/changeset_controller.rb index 9aaf6c7e0..e80eb1610 100644 --- a/app/controllers/changeset_controller.rb +++ b/app/controllers/changeset_controller.rb @@ -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 ##