Mark map responses as attachments.
This commit is contained in:
parent
b331823b5d
commit
cb3992f5a1
1 changed files with 2 additions and 0 deletions
|
@ -190,6 +190,8 @@ class ApiController < ApplicationController
|
||||||
doc.root << relation.to_xml_node(user_display_name_cache)
|
doc.root << relation.to_xml_node(user_display_name_cache)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
response.headers["Content-Disposition"] = "attachment; filename=\"map.osm\""
|
||||||
|
|
||||||
render :text => doc.to_s, :content_type => "text/xml"
|
render :text => doc.to_s, :content_type => "text/xml"
|
||||||
|
|
||||||
#exit when we have too many requests
|
#exit when we have too many requests
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue