-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug: Trailing slash with argument is not respected (#140)
* Fix linting errors Avoid unused loops, trailing whitespaces and hiding global vars. * Trailing Slash not respected with parameter Show the issue where when an argument is specified it's also matching without the trailing slash * Handle the trailing slash As ngx.re.split will `delete empty trailing ones` we need to double check that there is no required `/` at the end of the path. If there is a extra `/` then add it to the pat regex. Also see https://github.com/openresty/lua-resty-core/blob/50f73790b6bb1d83f52cb3b4ec7e4ab7f649ab32/lib/ngx/re.lua#L273
- Loading branch information
1 parent
2f6e491
commit dd87111
Showing
2 changed files
with
53 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters