X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ddb003f0f2217f421180b0ca78f149c3f4e6b28a..b465917259e790ed9274d362ebae9d10d2711527:/app/controllers/api_controller.rb diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb index 223edc6aa..26cb93a48 100644 --- a/app/controllers/api_controller.rb +++ b/app/controllers/api_controller.rb @@ -190,6 +190,8 @@ class ApiController < ApplicationController doc.root << relation.to_xml_node(user_display_name_cache) end + response.headers["Content-Disposition"] = "attachment; filename=\"map.osm\"" + render :text => doc.to_s, :content_type => "text/xml" #exit when we have too many requests