Adapt to latest changes in go-webdav

There is now only one last PR missing before we can start using the
vanilla upstream go-webdav again. Thanks a lot to Simon for his patience
reviewing my PRs!
This commit is contained in:
Conrad Hoffmann 2022-05-13 15:38:02 +02:00
parent 4765adc1a3
commit 53b2c88311
3 changed files with 7 additions and 7 deletions

View file

@ -67,12 +67,12 @@ func (u *tokidokiHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
if r.URL.Path == userPrincipalPath {
opts := webdav.ServeUserPrincipalOptions{
UserPrincipalPath: userPrincipalPath,
HomeSets: homeSets,
opts := webdav.ServePrincipalOptions{
CurrentUserPrincipalPath: userPrincipalPath,
HomeSets: homeSets,
}
webdav.ServeUserPrincipal(w, r, &opts)
webdav.ServePrincipal(w, r, &opts)
return
}