From 06ecb0e64c24db0a982a728d6415c9822648d0a6 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 25 May 2022 15:07:20 +0200 Subject: [PATCH] webdav: add TODO about fallback in Client.FindCurrentUserPrincipal --- client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client.go b/client.go index ad0a748..8250b64 100644 --- a/client.go +++ b/client.go @@ -50,6 +50,8 @@ func NewClient(c HTTPClient, endpoint string) (*Client, error) { func (c *Client) FindCurrentUserPrincipal() (string, error) { propfind := internal.NewPropNamePropfind(internal.CurrentUserPrincipalName) + // TODO: consider retrying on the root URI "/" if this fails, as suggested + // by the RFC? resp, err := c.ic.PropfindFlat("", propfind) if err != nil { return "", err