http: fix webdav OPTIONS response (#6433)

This commit is contained in:
yuudi
2023-07-30 18:59:54 +00:00
committed by Nick Craig-Wood
parent 5e3bf50b2e
commit 88c72d1f4d
3 changed files with 15 additions and 9 deletions

View File

@ -459,8 +459,7 @@ func TestMiddlewareCORSWithAuth(t *testing.T) {
require.NoError(t, s.Shutdown())
}()
expected := []byte("data")
s.Router().Mount("/", testEchoHandler(expected))
s.Router().Mount("/", testEmptyHandler())
s.Serve()
url := testGetServerURL(t, s)