X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/226c41be692452129227f30d67f2d847e510015c..3d55db46ed24d563d82cf42f91fd064e40447c4d:/app/controllers/old_relation_controller.rb diff --git a/app/controllers/old_relation_controller.rb b/app/controllers/old_relation_controller.rb index 3f4b884f6..0e1950cee 100644 --- a/app/controllers/old_relation_controller.rb +++ b/app/controllers/old_relation_controller.rb @@ -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