Fixed an indexing bug in filepath

This commit is contained in:
Yessiest 2023-10-18 17:15:05 +04:00
parent 000e53e742
commit 1039d66c73
1 changed files with 2 additions and 1 deletions

View File

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