diff --git a/lib/landline/node.rb b/lib/landline/node.rb index 0e870dc..5d87cf7 100644 --- a/lib/landline/node.rb +++ b/lib/landline/node.rb @@ -43,7 +43,8 @@ module Landline request.push_state path, splat, param = @pattern.match(request.path) - do_filepath(request, request.path.delete_suffix(path)) + do_filepath(request, request.path.delete_suffix('/') + .delete_suffix(path)) request.path = path request.splat.append(*splat) request.param.merge!(param)