]> git.openstreetmap.org Git - rails.git/commitdiff
Headers is an array not a function...
authorTom Hughes <tom@compton.nu>
Sat, 19 Apr 2008 13:29:10 +0000 (13:29 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 19 Apr 2008 13:29:10 +0000 (13:29 +0000)
app/controllers/api_controller.rb

index 3ef5e753aef135fc6f7fbe0ddfc162bcbc6803d3..223edc6aa870db14b325895999ca3e8e7a416ebb 100644 (file)
@@ -79,7 +79,7 @@ class ApiController < ApplicationController
       exit!
     end
 
       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
 
     render :text => doc.to_s, :content_type => "text/xml"
   end