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
p := a_path
l_uri := based_uri (uri, a_router)
if l_uri.ends_with ("/") then
if not p.ends_with ("/") then
p := p + "/"
end
else
if p.ends_with ("/") then
p := p.substring (1, p.count - 1)
if trailing_slash_ignored then
if l_uri.ends_with ("/") then
if not p.ends_with ("/") then
p := p + "/"
end
else
if p.ends_with ("/") then
p := p.substring (1, p.count - 1)
end
end
end
if p.same_string (l_uri) then