Commit ea2ea9ca55174ca016ad983c51a6b36e22c6c4d7:
    alias '/index.html' to '/'


Branch: refs/heads/master
Author: Sam Ruby <[email protected]>
Committer: Sam Ruby <[email protected]>
Pusher: rubys <[email protected]>

------------------------------------------------------------
www/secmail/server.rb                                        | +++++ 
------------------------------------------------------------
5 changes: 5 additions, 0 deletions.
------------------------------------------------------------


diff --git a/www/secmail/server.rb b/www/secmail/server.rb
index 5b8fe1c..fde3fe1 100644
--- a/www/secmail/server.rb
+++ b/www/secmail/server.rb
@@ -20,6 +20,11 @@
   _html :index
 end
 
+# alias for root directory
+get '/index.html' do
+  call env.merge('PATH_INFO' => '/')
+end
+
 # support for fetching previous month's worth of messages
 get %r{^/(\d{6})$} do |mbox|
   @mbox = mbox

Reply via email to