]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api_controller.rb
Quote reply messages properly.
[rails.git] / app / controllers / api_controller.rb
index 3ef5e753aef135fc6f7fbe0ddfc162bcbc6803d3..26cb93a489cbd1f625b79ea727e0e58b78eccabf 100644 (file)
@@ -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