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
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue