1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +00:00

LibHTTP: Relax the finish_up() "must be called once" limitation a bit

It's alright for this function to be called multiple times, as it quits
early when a partial flush doesn't empty the download buffer.
Relax the assertion to having scheduled "did_finish()" only once.
This commit is contained in:
Ali Mohammad Pur 2021-06-29 01:40:18 +04:30 committed by Ali Mohammad Pur
parent b12e5de047
commit 3058ff1500
2 changed files with 5 additions and 3 deletions

View file

@ -64,6 +64,7 @@ protected:
Optional<size_t> m_current_chunk_total_size;
bool m_can_stream_response { true };
bool m_should_read_chunk_ending_line { false };
bool m_has_scheduled_finish { false };
};
}