X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/20a861392e1ee7970da5d95b546aa8551faaf27b..7f19bade8ee72d77a2e229f4f0ccc863e01d6421:/app/controllers/node_controller.rb?ds=sidebyside diff --git a/app/controllers/node_controller.rb b/app/controllers/node_controller.rb index 33e0ed3ee..19eb77163 100644 --- a/app/controllers/node_controller.rb +++ b/app/controllers/node_controller.rb @@ -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