From edc8253e016cb823c08cbe81c47e536b6842f786 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 18 Feb 2020 17:32:09 +0000 Subject: [Minor] One more trailing slash fix + tests --- test/lua/unit/url.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/lua/unit/url.lua b/test/lua/unit/url.lua index 92709b365..583502c48 100644 --- a/test/lua/unit/url.lua +++ b/test/lua/unit/url.lua @@ -56,8 +56,8 @@ context("URL check functions", function() end cases = { - {[[http://example.net/path/.]], true, { - host = 'example.net', path = 'path' + {[[http://example.net/path/]], true, { + host = 'example.net', path = 'path/' }}, {'http://example.net/hello%20world.php?arg=x#fragment', true, { host = 'example.net', fragment = 'fragment', query = 'arg=x', @@ -146,8 +146,8 @@ context("URL check functions", function() {"/././foo", "/foo"}, {"/a/b/c/./../../g", "/a/g"}, {"/./.foo", "/.foo"}, - {"/foo/.", "/foo"}, - {"/foo/./", "/foo"}, + {"/foo/.", "/foo/"}, + {"/foo/./", "/foo/"}, {"/foo/bar/..", "/foo"}, {"/foo/bar/../", "/foo/"}, {"/foo/..bar", "/foo/..bar"}, -- cgit v1.2.3