whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [1/1] Commit ea2ea9c: alias '/index.html' to '/'
Date Mon, 11 Jan 2016 14:11:09 GMT
Commit ea2ea9ca55174ca016ad983c51a6b36e22c6c4d7:
    alias '/index.html' to '/'


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@apache.org>

------------------------------------------------------------
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

Mime
View raw message