Mark map responses as attachments.

This commit is contained in:
Tom Hughes 2008-04-19 13:35:02 +00:00
parent b331823b5d
commit cb3992f5a1

View file

@ -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