From ea9a4c2aa28a89386a1b0d118d7492e4f70990c2 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 13 Jun 2017 12:55:13 +0100 Subject: [PATCH] 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. --- app/controllers/changeset_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ## -- 2.43.2