X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4cc400de436a5dc33b66bc735b5fb6257e066a5a..d3314fee0f4a4031a893e0a93b5fa0f86b1613ed:/app/controllers/api_controller.rb diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb index 3ef5e753a..26cb93a48 100644 --- a/app/controllers/api_controller.rb +++ b/app/controllers/api_controller.rb @@ -79,7 +79,7 @@ class ApiController < ApplicationController exit! end - response.headers("Content-Disposition") = "attachment; filename=\"map.osm\"" + response.headers["Content-Disposition"] = "attachment; filename=\"map.osm\"" render :text => doc.to_s, :content_type => "text/xml" end @@ -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