add last-modified header to relation read
authorSteve Coast <steve@asklater.com>
Mon, 21 Jan 2008 17:42:57 +0000 (17:42 +0000)
committerSteve Coast <steve@asklater.com>
Mon, 21 Jan 2008 17:42:57 +0000 (17:42 +0000)
app/controllers/relation_controller.rb

index 3f185254b4cb3ae6c5e56fdab1cdce7357607126..2b1ba6c753c70df6579d381facebc7bd451be754 100644 (file)
@@ -31,7 +31,7 @@ class RelationController < ApplicationController
   def read
     begin
       relation = Relation.find(params[:id])
-
+      response.headers['Last-Modified'] = relation.timestamp.rfc822
       if relation.visible
         render :text => relation.to_xml.to_s, :content_type => "text/xml"
       else