mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 05:55:13 +00:00
LibHTTP: Ignore empty reads on chunk boundaries
This commit is contained in:
parent
3564e4eff1
commit
fdd2d49c5b
Notes:
sideshowbarker
2024-07-18 03:05:05 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/fdd2d49c5b6 Pull-request: https://github.com/SerenityOS/serenity/pull/10347
1 changed files with 2 additions and 0 deletions
|
@ -240,6 +240,8 @@ void Job::on_socket_connected()
|
|||
auto size_lines = size_data.view().lines();
|
||||
dbgln_if(JOB_DEBUG, "Job: Received a chunk with size '{}'", size_data);
|
||||
if (size_lines.size() == 0) {
|
||||
if (!eof())
|
||||
return AK::IterationDecision::Continue;
|
||||
dbgln("Job: Reached end of stream");
|
||||
finish_up();
|
||||
return IterationDecision::Break;
|
||||
|
|
Loading…
Add table
Reference in a new issue