From ddb003f0f2217f421180b0ca78f149c3f4e6b28a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 19 Apr 2008 13:29:10 +0000 Subject: [PATCH] Headers is an array not a function... --- app/controllers/api_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb index 3ef5e753a..223edc6aa 100644 --- a/app/controllers/api_controller.rb +++ b/app/controllers/api_controller.rb @@ -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 -- 2.39.5