ignore root path, no need strip traling slash

This commit is contained in:
fundon
2015-01-28 15:18:09 +08:00
committed by bep
parent 2d8e15a565
commit ee1045ad42
2 changed files with 7 additions and 4 deletions

View File

@@ -81,6 +81,8 @@ func TestAddContextRoot(t *testing.T) {
// cannot guess that the context root is already added int the example below
{"http://example.com/sub/", "/sub/foo", "/sub/sub/foo"},
{"http://example.com/тря", "/трям/", "/тря/трям/"},
{"http://example.com", "/", "/"},
{"http://example.com/bar", "//", "/bar/"},
}
for _, test := range tests {