]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/way_controller.rb
Use last_modified method instead of setting the header manually
[rails.git] / app / controllers / way_controller.rb
index f19d6db7d1d271884e8da2a7e46710c783c435fe..e20eb1a7970c2942176d4302ecd987fc0b652ff1 100644 (file)
@@ -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"