Fixed URI mapping with regard to trailing slash handling.
This commit is contained in:
@@ -58,6 +58,7 @@ feature -- Status
|
||||
do
|
||||
p := a_path
|
||||
l_uri := based_uri (uri, a_router)
|
||||
if trailing_slash_ignored then
|
||||
if l_uri.ends_with ("/") then
|
||||
if not p.ends_with ("/") then
|
||||
p := p + "/"
|
||||
@@ -67,6 +68,7 @@ feature -- Status
|
||||
p := p.substring (1, p.count - 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
if p.same_string (l_uri) then
|
||||
Result := True
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user