mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
RequestServer: Remove unused content length check for received data
This commit is contained in:
parent
51a91771b8
commit
91161d77e0
|
|
@ -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…
Reference in New Issue
Block a user