From c2958906eaf409f09fe3e3a1876b08755f568880 Mon Sep 17 00:00:00 2001 From: Konrad Wojas Date: Sun, 31 May 2020 22:09:41 +0800 Subject: [PATCH] Fix TestSplitURLPath --- handlers_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers_test.go b/handlers_test.go index 7d47ea1..ff78af6 100644 --- a/handlers_test.go +++ b/handlers_test.go @@ -265,7 +265,7 @@ func TestSplitURLPath(t *testing.T) { {"/foo/bar", 2, []string{"foo"}, "/bar"}, {"/locks/", 2, nil, "/locks/"}, // This function only splits, it does not check the path components! - {"/././locks/", 2, []string{"..", ".."}, "/locks/"}, + {"/././locks/", 2, []string{".", "."}, "/locks/"}, {"/../../locks/", 2, []string{"..", ".."}, "/locks/"}, {"///locks/", 2, []string{"", ""}, "/locks/"}, {"////locks/", 2, []string{"", ""}, "//locks/"},