From 7eec8de2a694764831ed26936f09aefec50ed9f4 Mon Sep 17 00:00:00 2001 From: Dan Karran Date: Sat, 16 Jun 2007 21:32:41 +0000 Subject: [PATCH] Setting correct XML content-type for trace RSS feeds. --- app/controllers/trace_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/trace_controller.rb b/app/controllers/trace_controller.rb index b4bf36169..478109eb0 100644 --- a/app/controllers/trace_controller.rb +++ b/app/controllers/trace_controller.rb @@ -145,7 +145,7 @@ class TraceController < ApplicationController rss.add(trace.latitude, trace.longitude, trace.name, url_for({:controller => 'trace', :action => 'view', :id => trace.id, :display_name => trace.user.display_name}), " 'icon', :id => trace.id, :user_login => trace.user.display_name})}'> GPX file with #{trace.size} points from #{trace.user.display_name}", trace.timestamp) end - response.headers["Content-Type"] = 'application/xml+rss' + response.headers["Content-Type"] = 'application/rss+xml' render :text => rss.to_s end -- 2.39.5