Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
/principals should be /principals/
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sat, 23 Apr 2016 23:22:26 +0000 (00:22 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sat, 23 Apr 2016 23:22:26 +0000 (00:22 +0100)
/principals should be /principals/ in various parts of the CalDAV object
when restoring the settings back to their original state.

Subroutines affected in the CalDAV object:

GetCalendarHome(string);
AddCalendar(string);

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