Commit 8653b70c authored by Guiheux Steven's avatar Guiheux Steven Committed by Matt Holt

test: add unit test for #1283 (#1288)

parent e363491a
......@@ -833,6 +833,12 @@ func TestProxyDirectorURL(t *testing.T) {
targetURL: `https://localhost:2021/t/`,
expectURL: `https://localhost:2021/t/test/`,
},
{
requestURL: `http://localhost:2020/test/mypath`,
targetURL: `https://localhost:2021/t/`,
expectURL: `https://localhost:2021/t/mypath`,
without: "/test",
},
} {
targetURL, err := url.Parse(c.targetURL)
if err != nil {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment