From dbf4e326715e64cf7dd1d554a5a2833b6ac0b563 Mon Sep 17 00:00:00 2001 From: Steve Coast Date: Mon, 21 Jan 2008 17:42:57 +0000 Subject: [PATCH 1/1] add last-modified header to relation read --- app/controllers/relation_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/relation_controller.rb b/app/controllers/relation_controller.rb index 3f185254b..2b1ba6c75 100644 --- a/app/controllers/relation_controller.rb +++ b/app/controllers/relation_controller.rb @@ -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 -- 2.45.1