]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api_controller.rb
More work on export tab.
[rails.git] / app / controllers / api_controller.rb
index 3350e733cbb41a7cece2e62ba074c42e42efc42f..3ef5e753aef135fc6f7fbe0ddfc162bcbc6803d3 100644 (file)
@@ -79,8 +79,9 @@ class ApiController < ApplicationController
       exit!
     end
 
-    render :text => doc.to_s, :content_type => "text/xml"
+    response.headers("Content-Disposition") = "attachment; filename=\"map.osm\""
 
+    render :text => doc.to_s, :content_type => "text/xml"
   end
 
   def map