/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);
// Reset the changed settings.
// 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_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);
// Restore the original settings.
// 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);
curl_easy_setopt(ConnectionHandle, CURLOPT_URL, OriginalServerAddress.c_str());
curl_easy_setopt(ConnectionHandle, CURLOPT_CUSTOMREQUEST, NULL);
curl_easy_setopt(ConnectionHandle, CURLOPT_UPLOAD, 0L);