Setting correct XML content-type for trace RSS feeds.
authorDan Karran <dan@karran.net>
Sat, 16 Jun 2007 21:32:41 +0000 (21:32 +0000)
committerDan Karran <dan@karran.net>
Sat, 16 Jun 2007 21:32:41 +0000 (21:32 +0000)
app/controllers/trace_controller.rb

index b4bf36169552b92d3c82514c09a9ab5faf376ae0..478109eb06c04e1bf990e327f49936146fb77091 100644 (file)
@@ -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}), "<img src='#{url_for({:controller => 'trace', :action => '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