get basic information about the user

This commit is contained in:
2026-08-06 19:38:04 -04:00
parent af2d823705
commit f76d715cb9
2 changed files with 26 additions and 4 deletions
+4 -4
View File
@@ -20,11 +20,11 @@ const neededXML string = `
</d:propfind>
`
var client *http.Client
var BuildInClient *http.Client
var serverURL string
func InitDavClient(url string) {
client = &http.Client{}
BuildInClient = &http.Client{}
serverURL = url
}
@@ -55,7 +55,7 @@ func GetCalDAVData(username string, password string) SimpleCalDavData {
req.Header.Set("Depth", "1")
req.Header.Set("Content-Type", "application/xml")
resp, err := client.Do(req)
resp, err := BuildInClient.Do(req)
if err != nil {
fmt.Print(err.Error())
}
@@ -120,7 +120,7 @@ func GetCalendarData(cal Calandar, username string, password string) Calandar {
req.Header.Set("Depth", "1")
req.Header.Set("Content-Type", "application/xml")
resp, err := client.Do(req)
resp, err := BuildInClient.Do(req)
if err != nil {
fmt.Print(err.Error())
}