Add debug logging to NewUserWebDAVClient to diagnose URL construction
This commit is contained in:
BIN
go_cloud/api
BIN
go_cloud/api
Binary file not shown.
@@ -70,6 +70,8 @@ func NewUserWebDAVClient(nextcloudBaseURL, username, password string) *WebDAVCli
|
|||||||
// Build the full WebDAV URL for this user
|
// Build the full WebDAV URL for this user
|
||||||
fullURL := fmt.Sprintf("%s/remote.php/dav/files/%s", baseURL, username)
|
fullURL := fmt.Sprintf("%s/remote.php/dav/files/%s", baseURL, username)
|
||||||
|
|
||||||
|
fmt.Printf("[WEBDAV-USER] Input URL: %s, Base: %s, Full: %s, User: %s\n", nextcloudBaseURL, baseURL, fullURL, username)
|
||||||
|
|
||||||
return &WebDAVClient{
|
return &WebDAVClient{
|
||||||
baseURL: fullURL,
|
baseURL: fullURL,
|
||||||
user: username,
|
user: username,
|
||||||
|
|||||||
Reference in New Issue
Block a user