mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-26 05:58:27 -05:00
fix proxy directorSelectionDirector test
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
@@ -127,9 +127,9 @@ func TestDirectorSelectionDirector(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, test := range table {
|
||||
r := httptest.NewRequest(http.MethodGet, "/dav/files/demo/", nil)
|
||||
r := httptest.NewRequest(test.method, "/dav/files/demo/", nil)
|
||||
p.directorSelectionDirector(r)
|
||||
if r.Host != test.target {
|
||||
if r.URL.Host != test.target {
|
||||
t.Errorf("TestDirectorSelectionDirector got host %s expected %s", r.Host, test.target)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user