X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c38e4bf4a0f76550300386bbabf4bdda943e56c1..12f9bedbf5a949752a45184e760eada952bf8fc2:/app/controllers/node_controller.rb diff --git a/app/controllers/node_controller.rb b/app/controllers/node_controller.rb index 27c21c481..bd81c9aa2 100644 --- a/app/controllers/node_controller.rb +++ b/app/controllers/node_controller.rb @@ -4,7 +4,7 @@ class NodeController < ApplicationController before_filter :authorize after_filter :compress_output - def create + def create response.headers["Content-Type"] = 'application/xml' if request.put? node = nil @@ -19,7 +19,7 @@ class NodeController < ApplicationController node.user_id = @user.id node.visible = 1 if node.save_with_history - render :text => node.id + render :text => node.id.to_s else render :nothing => true, :status => 500 end