add last-modified header to relation read
This commit is contained in:
parent
3e355d7dc0
commit
dbf4e32671
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ class RelationController < ApplicationController
|
||||||
def read
|
def read
|
||||||
begin
|
begin
|
||||||
relation = Relation.find(params[:id])
|
relation = Relation.find(params[:id])
|
||||||
|
response.headers['Last-Modified'] = relation.timestamp.rfc822
|
||||||
if relation.visible
|
if relation.visible
|
||||||
render :text => relation.to_xml.to_s, :content_type => "text/xml"
|
render :text => relation.to_xml.to_s, :content_type => "text/xml"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue