]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api_controller.rb
Headers is an array not a function...
[rails.git] / app / controllers / api_controller.rb
index 3ef5e753aef135fc6f7fbe0ddfc162bcbc6803d3..223edc6aa870db14b325895999ca3e8e7a416ebb 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