]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/old_way_controller.rb
Use last_modified method instead of setting the header manually
[rails.git] / app / controllers / old_way_controller.rb
index ac1c6cd40805056ae377fefd9517ec960e55c603..5ea1a0497d7cba35a85fe8a0c03eb3de6fc6cf41 100644 (file)
@@ -19,7 +19,7 @@ class OldWayController < ApplicationController
   
   def version
     if old_way = OldWay.where(:id => params[:id], :version => params[:version]).first
-      response.headers['Last-Modified'] = old_way.timestamp.rfc822
+      response.last_modified = old_way.timestamp
 
       doc = OSM::API.new.get_xml_doc
       doc.root << old_way.to_xml_node