1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:38:10 +00:00

LibHTTP: Be more tolerant about bad chunked encoding trailers

Some servers (*glares at cloudflare*) like to send two last chunks,
which is strictly against the spec. Let's be more tolerant of this
behaviour.
This commit is contained in:
AnotherTest 2020-07-26 06:38:33 +04:30 committed by Andreas Kling
parent 49c5acaa3d
commit ec0315883b
2 changed files with 19 additions and 0 deletions

View file

@ -51,6 +51,7 @@ public:
virtual void shutdown() override;
protected:
virtual bool should_fail_on_empty_payload() const override { return false; }
virtual void register_on_ready_to_read(Function<void()>) override;
virtual void register_on_ready_to_write(Function<void()>) override;
virtual bool can_read_line() const override;