X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1017c4c39a1a8523262f290ff20f999223a0572b..8afc6abb7e6b2602612ea2ad62717dd10dd12270:/app/controllers/user_controller.rb diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index b1a37872b..5eba0e837 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -165,12 +165,12 @@ class UserController < ApplicationController @user.save! render :nothing => true else - render :status => 400, :nothing => true + render :nothing => true, :status => :method_not_allowed end end def api_details - render :text => @user.to_xml.to_s + render :text => @user.to_xml.to_s, :content_type => "text/xml" end def api_gpx_files @@ -178,7 +178,7 @@ class UserController < ApplicationController @user.traces.each do |trace| doc.root << trace.to_xml_node() if trace.public? or trace.user == @user end - render :text => doc.to_s + render :text => doc.to_s, :content_type => "text/xml" end def view