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