]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/old_relation_controller.rb
Use last_modified method instead of setting the header manually
[rails.git] / app / controllers / old_relation_controller.rb
index 3f4b884f6ff88c59211b0f31278535903017cc98..0e1950ceee6b2c83d54bcee2677e5b3c02abc42d 100644 (file)
@@ -18,7 +18,7 @@ class OldRelationController < ApplicationController
   
   def version
     if old_relation = OldRelation.where(:id => params[:id], :version => params[:version]).first
-      response.headers['Last-Modified'] = old_relation.timestamp.rfc822
+      response.last_modified = old_relation.timestamp
 
       doc = OSM::API.new.get_xml_doc
       doc.root << old_relation.to_xml_node