diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2013-02-01 10:03:27 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2013-02-01 10:03:27 +0100 |
commit | 2d0ad8b3ed8bbf2451560460965bc084c7b8576e (patch) | |
tree | 69632641aa6bd3e4acfb9a34e62e9a1c9e7de822 | |
parent | 9f049aa1e69d3921700b5c49751e5d94eedb28e3 (diff) | |
download | zorglub-2d0ad8b3ed8bbf2451560460965bc084c7b8576e.zip zorglub-2d0ad8b3ed8bbf2451560460965bc084c7b8576e.tar.gz |
remove all leading slash of PATH_INFO to get meth
-rw-r--r-- | lib/zorglub/node.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb index 3cc4d8d..9d71a8c 100644 --- a/lib/zorglub/node.rb +++ b/lib/zorglub/node.rb @@ -220,7 +220,7 @@ module Zorglub end # def call env - meth, *args = env['PATH_INFO'].sub(/^\//,'').split(/\//) + meth, *args = env['PATH_INFO'].sub(/^\/+/,'').split(/\//) meth ||= 'index' puts "=> #{meth}(#{args.join ','})" if app.opt :debug node = self.new env, meth, args |