svnno****@sourc*****
svnno****@sourc*****
2009年 9月 9日 (水) 00:45:37 JST
Revision: 1058 http://sourceforge.jp/projects/hiki/svn/view?view=rev&revision=1058 Author: okkez Date: 2009-09-09 00:45:37 +0900 (Wed, 09 Sep 2009) Log Message: ----------- using rack Modified Paths: -------------- hiki/branches/rack/misc/plugin/rss.rb Modified: hiki/branches/rack/misc/plugin/rss.rb =================================================================== --- hiki/branches/rack/misc/plugin/rss.rb 2009-09-08 14:17:27 UTC (rev 1057) +++ hiki/branches/rack/misc/plugin/rss.rb 2009-09-08 15:45:37 UTC (rev 1058) @@ -96,7 +96,7 @@ if if_modified_since and last_modified < if_modified_since header['status'] = 'NOT_MODIFIED' - print****@cgi*****(header) + return ::Hiki::Response.new('', 304, header) else header['Last-Modified'] = CGI.rfc1123_date(last_modified) header['type'] = 'text/xml' @@ -104,11 +104,8 @@ header['Content-Language'] =****@conf***** header['Pragma'] = 'no-cache' header['Cache-Control'] = 'no-cache' - print****@cgi*****(header) - puts body + return ::Hiki::Response.new(body, 200, header) end - - nil # Don't move to the 'FrontPage' end add_body_enter_proc(Proc.new do