]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/node_controller.rb
Use last_modified method instead of setting the header manually
[rails.git] / app / controllers / node_controller.rb
index 33e0ed3ee876f358c77c3e93dada13bd753ae716..19eb771638a53963b73531903326fd8c45faf936 100644 (file)
@@ -26,7 +26,7 @@ class NodeController < ApplicationController
   def read
     node = Node.find(params[:id])
     if node.visible?
-      response.headers['Last-Modified'] = node.timestamp.rfc822
+      response.last_modified = node.timestamp
       render :text => node.to_xml.to_s, :content_type => "text/xml"
     else
       render :text => "", :status => :gone