Add WebDAV upload URL debug logging

This commit is contained in:
Leon Bösche
2026-01-10 23:43:12 +01:00
parent 9b10b1f6f1
commit 6186c4c779

View File

@@ -89,6 +89,8 @@ func (c *WebDAVClient) Upload(ctx context.Context, remotePath string, r io.Reade
}
full := fmt.Sprintf("%s%s/%s", c.baseURL, u, url.PathEscape(rel))
full = strings.ReplaceAll(full, "%2F", "/")
fmt.Printf("[WEBDAV-UPLOAD] BaseURL: %s, BasePrefix: %s, RemotePath: %s, Full URL: %s\n", c.baseURL, c.basePrefix, remotePath, full)
req, err := http.NewRequestWithContext(ctx, "PUT", full, r)
if err != nil {