Mark map responses as attachments.
authorTom Hughes <tom@compton.nu>
Sat, 19 Apr 2008 13:35:02 +0000 (13:35 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 19 Apr 2008 13:35:02 +0000 (13:35 +0000)
app/controllers/api_controller.rb

index 223edc6..26cb93a 100644 (file)
@@ -190,6 +190,8 @@ class ApiController < ApplicationController
       doc.root << relation.to_xml_node(user_display_name_cache)
     end
 
       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
     render :text => doc.to_s, :content_type => "text/xml"
     
     #exit when we have too many requests