]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/relation_controller.rb
Use last_modified method instead of setting the header manually
[rails.git] / app / controllers / relation_controller.rb
index db68847e54a274819d2d5dc9e0c8ab8e99d72e71..0c2cccd11ee847cf46ff8af315bb6c1e9b316301 100644 (file)
@@ -26,7 +26,7 @@ class RelationController < ApplicationController
 
   def read
     relation = Relation.find(params[:id])
-    response.headers['Last-Modified'] = relation.timestamp.rfc822
+    response.last_modified = relation.timestamp
     if relation.visible
       render :text => relation.to_xml.to_s, :content_type => "text/xml"
     else