fix proxy directorSelectionDirector test

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2022-05-02 14:49:30 +00:00
parent c720d18de8
commit 4d888ccb7a
+2 -2
View File
@@ -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)
}