X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/226c41be692452129227f30d67f2d847e510015c..ba97fca4f271132a4c0bad9d298b6a97ecb049c4:/app/controllers/relation_controller.rb diff --git a/app/controllers/relation_controller.rb b/app/controllers/relation_controller.rb index db68847e5..0c2cccd11 100644 --- a/app/controllers/relation_controller.rb +++ b/app/controllers/relation_controller.rb @@ -26,7 +26,7 @@ class RelationController < ApplicationController def read relation = Relation.find(params[:id]) - response.headers['Last-Modified'] = relation.timestamp.rfc822 + response.last_modified = relation.timestamp if relation.visible render :text => relation.to_xml.to_s, :content_type => "text/xml" else