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