Skip to content

Commit 1d74e28

Browse files
ecclesia-robotcopybara-github
authored andcommitted
Add CURLOPT_NOPROGRESS to ensure ProgressCallback is called
PiperOrigin-RevId: 615129482
1 parent 96d752d commit 1d74e28

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ecclesia/lib/http/curl_client.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ absl::StatusOr<CurlHttpClient::HttpResponse> CurlHttpClient::HttpMethod(
403403
libcurl_->curl_easy_setopt(curl, CURLOPT_WRITEHEADER, &context);
404404

405405
if (handler != nullptr) {
406+
libcurl_->curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L);
406407
libcurl_->curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION,
407408
ProgressCallback);
408409
libcurl_->curl_easy_setopt(curl, CURLOPT_XFERINFODATA, &context);

0 commit comments

Comments
 (0)