mirror of
https://github.com/1f349/go-webdav.git
synced 2024-12-22 08:14:15 +00:00
A Go library for WebDAV, CalDAV and CardDAV
03633121d9
One common method for CalDAV or CardDAV clients to find the current user principal URL is to request the `/.well-known` URL (see [RFC 6764, section 6][1]), expecting a redirect. Such URL is for example a valid result of the discovery phase described in that RFC. The expectation is that a client, given such URL, is able to find the principal URL by following a redirect when sending a PROPFIND request. This change makes `PropfindFlat()` (and, by extension, `FindCurrentUserPrincipal()`) handle such a redirect and correctly return the requested properties, even if their HREF is different from the original request path. [1]: https://datatracker.ietf.org/doc/html/rfc6764#section-6 |
||
---|---|---|
caldav | ||
carddav | ||
cmd/webdav-server | ||
internal | ||
.build.yml | ||
.gitignore | ||
client.go | ||
elements.go | ||
fs_local.go | ||
go.mod | ||
go.sum | ||
LICENSE | ||
README.md | ||
server.go | ||
webdav.go |