From: Tom Hughes Date: Sat, 19 Apr 2008 13:29:10 +0000 (+0000) Subject: Headers is an array not a function... X-Git-Tag: live~8803 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/ddb003f0f2217f421180b0ca78f149c3f4e6b28a Headers is an array not a function... --- 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