* Only interpret last path element as action if it is not terminated by a "/".
This helps us to disambiguify URLs: /foo/ will never be interpreted as action, while /foo will be.
This commit is contained in:
parent
37574fbdfd
commit
961f755c4f
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ public final class RequestEvaluator implements Runnable {
|
|||
|
||||
// if we're at the last element of the path,
|
||||
// try to interpret it as action name.
|
||||
if (i == (ntokens - 1)) {
|
||||
if (i == (ntokens - 1) && !req.getPath().endsWith("/")) {
|
||||
action = getAction(currentElement,
|
||||
pathItems[i], req.getMethod());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue