summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-02-01 10:03:27 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2013-02-01 10:03:27 +0100
commit2d0ad8b3ed8bbf2451560460965bc084c7b8576e (patch)
tree69632641aa6bd3e4acfb9a34e62e9a1c9e7de822 /lib
parent9f049aa1e69d3921700b5c49751e5d94eedb28e3 (diff)
downloadzorglub-2d0ad8b3ed8bbf2451560460965bc084c7b8576e.zip
zorglub-2d0ad8b3ed8bbf2451560460965bc084c7b8576e.tar.gz
remove all leading slash of PATH_INFO to get meth
Diffstat (limited to 'lib')
-rw-r--r--lib/zorglub/node.rb2
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