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,13 +58,15 @@ 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 l_uri.ends_with ("/") then if trailing_slash_ignored then
if not p.ends_with ("/") then if l_uri.ends_with ("/") then
p := p + "/" if not p.ends_with ("/") then
end p := p + "/"
else end
if p.ends_with ("/") then else
p := p.substring (1, p.count - 1) if p.ends_with ("/") then
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