MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / infoComplete

Method infoComplete

src/common/cURLManager.cpp:433–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431
432
433void cURLManager::infoComplete(CURLcode result) {
434 if (result != CURLE_OK)
435 debugf(1, "File transfer terminated with error from libcurl %d : %s\n",
436 result, errorBuffer);
437 if (httpHeader) {
438 curl_slist_free_all(httpHeader);
439 httpHeader = NULL;
440 }
441 if (formPost) {
442 curl_formfree(formPost);
443 formPost = NULL;
444 formLast = NULL;
445 }
446 removeHandle();
447 finalization((char*)theData, theLen, result == CURLE_OK);
448 justCalled = true;
449 free(theData);
450 theData = NULL;
451 theLen = 0;
452}
453
454
455bool cURLManager::getFileTime(time_t& t) {

Callers 1

performMethod · 0.80

Calls 3

debugfFunction · 0.85
curl_slist_free_allFunction · 0.85
curl_formfreeFunction · 0.85

Tested by

no test coverage detected