You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
0 commit comments