Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
/principals should be /principals/
[xestiacalendar/.git] / source / objects / CalDAV / CalDAV.cpp
index e2a787d..22590ce 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;
        
@@ -614,7 +615,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