emersion / go-webdav

A Go library for WebDAV, CalDAV and CardDAV
MIT License
314 stars 66 forks source link

Support setting capabilities in ServePrincipal() #120

Closed bitfehler closed 1 year ago

bitfehler commented 1 year ago

This is done properly in the carddav and caldav packages, but the custom function does not know what the user intends to serve, so it must be passed in from the user. Without this, certain clients (e.g. DAVx5) will be unable to discover endpoints served this way.

Also slightly extend the supported methods returned on OPTIONS requests. REPORT is properly supported, the others are mostly for not giving clients the impression that the resources are read-only.

bitfehler commented 1 year ago

@emersion gentle ping :innocent: