|
|
|
@ -257,7 +257,7 @@ std::optional<std::string> launchpad::api_get(const std::string& endpoint, const
|
|
|
|
|
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback);
|
|
|
|
|
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &readBuffer);
|
|
|
|
|
|
|
|
|
|
bool tries = 0;
|
|
|
|
|
int tries = 0;
|
|
|
|
|
long http_code = 0;
|
|
|
|
|
|
|
|
|
|
while (tries < 5) {
|
|
|
|
@ -334,7 +334,7 @@ std::optional<std::string> launchpad::api_post(
|
|
|
|
|
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback);
|
|
|
|
|
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &readBuffer);
|
|
|
|
|
|
|
|
|
|
bool tries = 0;
|
|
|
|
|
int tries = 0;
|
|
|
|
|
long http_code = 0;
|
|
|
|
|
|
|
|
|
|
while (tries < 5) {
|
|
|
|
|