X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/226c41be692452129227f30d67f2d847e510015c..986f1c61fa115b7cfd5bef4a108c984da79fec85:/app/controllers/way_controller.rb diff --git a/app/controllers/way_controller.rb b/app/controllers/way_controller.rb index f19d6db7d..e20eb1a79 100644 --- a/app/controllers/way_controller.rb +++ b/app/controllers/way_controller.rb @@ -25,7 +25,7 @@ class WayController < ApplicationController def read way = Way.find(params[:id]) - response.headers['Last-Modified'] = way.timestamp.rfc822 + response.last_modified = way.timestamp if way.visible render :text => way.to_xml.to_s, :content_type => "text/xml"