mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 11:36:10 +00:00
RequestServer: Remove unused content length check for received data
This commit is contained in:
parent
51a91771b8
commit
91161d77e0
Notes:
github-actions[bot]
2025-01-23 20:37:14 +00:00
Author: https://github.com/ADKaster Commit: https://github.com/LadybirdBrowser/ladybird/commit/91161d77e0d Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3349 Reviewed-by: https://github.com/alimpfard ✅
1 changed files with 0 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue