RequestServer: Remove unused content length check for received data

This commit is contained in:
Andrew Kaster 2025-01-23 10:45:02 -07:00 committed by Ali Mohammad Pur
parent 51a91771b8
commit 91161d77e0
Notes: github-actions[bot] 2025-01-23 20:37:14 +00:00

View file

@ -177,13 +177,6 @@ size_t ConnectionFromClient::on_data_received(void* buffer, size_t size, size_t
remaining_length -= nwritten;
}
Optional<u64> content_length_for_ipc;
curl_off_t content_length = -1;
auto res = curl_easy_getinfo(request->easy, CURLINFO_CONTENT_LENGTH_DOWNLOAD_T, &content_length);
if (res == CURLE_OK && content_length != -1) {
content_length_for_ipc = content_length;
}
request->downloaded_so_far += total_size;
return total_size;