Fixed URI mapping with regard to trailing slash handling.

This commit is contained in:
2015-12-28 17:39:54 +01:00
parent 81ab31b19a
commit 5276bd1479

View File

@@ -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