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.
@@ -69,6 +69,8 @@ func NewUserWebDAVClient(nextcloudBaseURL, username, password string) *WebDAVCli
|
||||
baseURL := strings.Split(nextcloudBaseURL, "/remote.php")[0]
|
||||
// Build the full WebDAV URL for this user
|
||||
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{
|
||||
baseURL: fullURL,
|
||||
|
||||
Reference in New Issue
Block a user