mirror of
https://github.com/1f349/go-webdav.git
synced 2024-12-22 16:24:14 +00:00
webdav: add TODO about fallback in Client.FindCurrentUserPrincipal
This commit is contained in:
parent
97e0b10b4f
commit
06ecb0e64c
@ -50,6 +50,8 @@ func NewClient(c HTTPClient, endpoint string) (*Client, error) {
|
|||||||
func (c *Client) FindCurrentUserPrincipal() (string, error) {
|
func (c *Client) FindCurrentUserPrincipal() (string, error) {
|
||||||
propfind := internal.NewPropNamePropfind(internal.CurrentUserPrincipalName)
|
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)
|
resp, err := c.ic.PropfindFlat("", propfind)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
|
Loading…
Reference in New Issue
Block a user