mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-06 02:48:48 +03:00
parent
e363491a28
commit
8653b70c32
1 changed files with 6 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue