[Hiki-cvs 1477] [1024] fix src plugin

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 8月 30日 (日) 23:46:31 JST


Revision: 1024
          http://sourceforge.jp/projects/hiki/svn/view?view=rev&revision=1024
Author:   okkez
Date:     2009-08-30 23:46:31 +0900 (Sun, 30 Aug 2009)

Log Message:
-----------
fix src plugin

Modified Paths:
--------------
    hiki/branches/rack/misc/plugin/src.rb

Modified: hiki/branches/rack/misc/plugin/src.rb
===================================================================
--- hiki/branches/rack/misc/plugin/src.rb	2009-08-30 14:46:28 UTC (rev 1023)
+++ hiki/branches/rack/misc/plugin/src.rb	2009-08-30 14:46:31 UTC (rev 1024)
@@ -23,17 +23,15 @@
 </html>
 EOS
 
-  header = Hash::new
-  header['Last-Modified'] = CGI::rfc1123_date(Time.now)
+  header = {}
+  header['Last-Modified'] = CGI.rfc1123_date(Time.now)
   header['type']          = 'text/html'
   header['charset']       =  @conf.charset
   header['Content-Language'] =****@conf*****
   header['Pragma']           = 'no-cache'
   header['Cache-Control']    = 'no-cache'
-  print****@cgi*****(header)
-  puts sources
 
-  nil # Don't move to the 'FrontPage'
+  Hiki::Response.new(sources, 200, header)
 end
 
 add_body_enter_proc(Proc.new do




Hiki-cvs メーリングリストの案内
Back to archive index