Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Removed output of address to console in AddCalendar
[xestiacalendar/.git] / source / objects / CalDAV / CalDAV.cpp
index e2a787d..001743f 100644 (file)
@@ -437,12 +437,13 @@ string CalDAV::GetCalendarHome(string UserPrincipalURI){
        
        // Reset the changed settings.
        
-       string OriginalServerAddress = BuildServerAddress(&ConnectionData, "/principals");
+       string OriginalServerAddress = BuildServerAddress(&ConnectionData, "/principals/");
        curl_easy_setopt(ConnectionHandle, CURLOPT_URL, OriginalServerAddress.c_str());
        
        curl_easy_setopt(ConnectionHandle, CURLOPT_UPLOAD, 0L);
        curl_easy_setopt(ConnectionHandle, CURLOPT_READDATA, NULL);
        curl_easy_setopt(ConnectionHandle, CURLOPT_READFUNCTION, NULL);
+       curl_easy_setopt(ConnectionHandle, CURLOPT_HTTPHEADER, NULL);
        
        return CalendarHomeURI;
        
@@ -588,8 +589,6 @@ CalDAVServerResult CalDAV::AddCalendar(string CalendarName){
        
        struct curl_slist *CalendarRequestHeader = NULL;
        
-       cout << CalendarListURLAddress << endl;
-       
        //curl_easy_setopt(ConnectionHandle, CURLOPT_HTTPHEADER, CalendarRequestHeader);
        curl_easy_setopt(ConnectionHandle, CURLOPT_URL, CalendarListURLAddress.c_str());
        curl_easy_setopt(ConnectionHandle, CURLOPT_CUSTOMREQUEST, "MKCALENDAR");
@@ -614,7 +613,7 @@ CalDAVServerResult CalDAV::AddCalendar(string CalendarName){
        
        // Restore the original settings.
        
-       string OriginalServerAddress = BuildServerAddress(&ConnectionData, "/principals");
+       string OriginalServerAddress = BuildServerAddress(&ConnectionData, "/principals/");
        curl_easy_setopt(ConnectionHandle, CURLOPT_URL, OriginalServerAddress.c_str());
        curl_easy_setopt(ConnectionHandle, CURLOPT_CUSTOMREQUEST, NULL);        
        curl_easy_setopt(ConnectionHandle, CURLOPT_UPLOAD, 0L);
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy