[Hiki-cvs 1642] hiki/hiki @ 465388b [master] Rack HikiFarm: support file upload with attach.rb plugin

Back to archive index

Naohisa Goto null****@okkez*****
2014年 8月 6日 (水) 20:15:23 JST


Naohisa Goto	2014-08-06 20:15:23 +0900 (Wed, 06 Aug 2014)

  New Revision: 465388bf0921811b31305d7ee98356d7f1a11784
  https://github.com/hiki/hiki/commit/465388bf0921811b31305d7ee98356d7f1a11784

  Merged 7fe3790: Merge pull request #59 from ngoto/mydevel

  Message:
    Rack HikiFarm: support file upload with attach.rb plugin

  Modified files:
    hiki/farm/dispatcher.rb

  Modified: hiki/farm/dispatcher.rb (+6 -1)
===================================================================
--- hiki/farm/dispatcher.rb    2014-08-06 19:04:14 +0900 (653beb9)
+++ hiki/farm/dispatcher.rb    2014-08-06 20:15:23 +0900 (6673a7c)
@@ -11,7 +11,12 @@ module Hiki
         when %r!\A/(\w+)/!
           hikiconf_rb = File.join(conf.farm_root, $1, 'hikiconf.rb')
           if File.exist?(hikiconf_rb)
-            Hiki::App.new(hikiconf_rb).call(env)
+            case $'
+            when conf.attach_cgi_name
+              Hiki::Attachment.new(hikiconf_rb).call(env)
+            else
+              Hiki::App.new(hikiconf_rb).call(env)
+            end
           else
             not_found
           end




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