b266d53b15009dce8caf57ea3f6cd11805a7ddb6 — Conrad Hoffmann 1 year, 6 months ago c5c9901
Pass capabilites to principal path handler

The capabilities are added automatically by the default principal path
handlers in the `caldav` and `carddav` packages. However, using the
custom handler, they have to be passed in manually.

These being missing before was a violation of the RFC and the cause for
issues when using e.g. DavX5 client. This is now fixed.
1 files changed, 4 insertions(+), 0 deletions(-)

M cmd/tokidoki/main.go
M cmd/tokidoki/main.go => cmd/tokidoki/main.go +4 -0
@@ 70,6 70,10 @@ func (u *tokidokiHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
		opts := webdav.ServePrincipalOptions{
			CurrentUserPrincipalPath: userPrincipalPath,
			HomeSets:                 homeSets,
			Capabilities: []webdav.Capability{

		webdav.ServePrincipal(w, r, &opts)