add last-modified header to relation read

This commit is contained in:
Steve Coast 2008-01-21 17:42:57 +00:00
parent 3e355d7dc0
commit dbf4e32671

View 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