serve webdav: fix --baseurl handling after lib/http refactor

The webdav library was confused by the Path manipulation done by
lib/http when stripping the prefix.

This patch adds the prefix back before calling it.

Fixes #6650
This commit is contained in:
Nick Craig-Wood
2022-12-23 12:28:07 +00:00
parent 54c0f17f2a
commit 6257a6035c
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -51,6 +51,7 @@ func TestWebDav(t *testing.T) {
start := func(f fs.Fs) (configmap.Simple, func()) {
opt := DefaultOpt
opt.HTTP.ListenAddr = []string{testBindAddress}
opt.HTTP.BaseURL = "/prefix"
opt.Auth.BasicUser = testUser
opt.Auth.BasicPass = testPass
opt.Template.Path = testTemplate