Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Set the connection results after attempting to fetch data in GetServerSupport.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Thu, 3 Mar 2016 03:48:57 +0000 (03:48 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Thu, 3 Mar 2016 03:48:57 +0000 (03:48 +0000)
source/objects/CalDAV/CalDAV.cpp

index bb45429..6e1d0e6 100644 (file)
@@ -172,6 +172,16 @@ CalDAVServerSupport CalDAV::GetServerSupport(){
        
        CURLcode ServerResult = curl_easy_perform(ConnectionHandle);
        
+       // Set the results.
+       
+       if (ServerResult == CURLE_OK){
+               ConnectionServerResult.Result = CALDAVQUERYRESULT_OK;
+       } else {
+               ConnectionServerResult.Result = CALDAVQUERYRESULT_SERVERERROR;          
+       }
+       ConnectionServerResult.Code = ServerResult;
+       curl_easy_getinfo(ConnectionHandle, CURLINFO_RESPONSE_CODE, &ConnectionServerResult.HTTPCode);
+       
        if (ServerResult != CURLE_OK){
                return ServerStatus;
        }
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