mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:18:12 +00:00
Everywhere: Correctly report progress of downloads larger than 4GiB
This commit changes the variables used to represent the size and progress of downloads from u32 to u64. This allows `pro` and `Browser` to report the total size and progress of a download correctly for downloads larger than 4GiB.
This commit is contained in:
parent
c5e0547377
commit
1a17e08f87
18 changed files with 40 additions and 42 deletions
|
@ -380,7 +380,7 @@ void Job::on_socket_connected()
|
|||
dbgln_if(JOB_DEBUG, "Content-Encoding {} detected, cannot stream output :(", value);
|
||||
m_can_stream_response = false;
|
||||
} else if (name.equals_ignoring_ascii_case("Content-Length"sv)) {
|
||||
auto length = value.to_uint();
|
||||
auto length = value.to_uint<u64>();
|
||||
if (length.has_value())
|
||||
m_content_length = length.value();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue