]> git.openstreetmap.org Git - rails.git/commitdiff
Set MIME type correctly for diary RSS feeds.
authorTom Hughes <tom@compton.nu>
Wed, 16 Jan 2008 10:28:57 +0000 (10:28 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 16 Jan 2008 10:28:57 +0000 (10:28 +0000)
app/controllers/diary_entry_controller.rb

index 3637ad97dea9c250b0817a8d56825ab97d578c4d..90e53e778d3a5f210c81cc29a6445e2dd0beeaf4 100644 (file)
@@ -1,6 +1,6 @@
 class DiaryEntryController < ApplicationController
   layout 'site', :except => :rss
-  
+
   before_filter :authorize_web
   before_filter :require_user, :only => [:new]
 
@@ -43,5 +43,7 @@ class DiaryEntryController < ApplicationController
       @description = "Recent diary entries from users of OpenStreetMap"
       @link = "http://www.openstreetmap.org/diary"
     end
+
+    render :content_type => Mime::RSS
   end
 end