]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/way_controller.rb
Make things work with multipart keys.
[rails.git] / app / controllers / way_controller.rb
index 413c65d1cd55f9f812670a09d302bc9c0a61e59f..c1bbe5f72f13f220ca6d72df484cd70be60a2d20 100644 (file)
@@ -32,6 +32,8 @@ class WayController < ApplicationController
     begin
       way = Way.find(params[:id])
 
     begin
       way = Way.find(params[:id])
 
+      response.headers['Last-Modified'] = way.timestamp.rfc822
+
       if way.visible
         render :text => way.to_xml.to_s, :content_type => "text/xml"
       else
       if way.visible
         render :text => way.to_xml.to_s, :content_type => "text/xml"
       else