Cheroot ignores the Content-Length
header when the connection is half-closed.
#724
Open
1 of 3 tasks
β I'm submitting a ...
π Describe the bug. What is the current behavior?
From RFC 9112:
Cheroot does not enforce this rule. When it receives a request, and the sender half-closes the connection, Cheroot responds regardless of whether the request's body has been fully received.
β What is the motivation / use case for changing the behavior?
RFC compliance and hardening against potential framing-related attacks.
π‘ To Reproduce
π‘ Expected behavior
Cheroot should close the connection, as the RFC requires.
π Environment
Linux d8087152685c 6.9.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 28 Jun 2024 04:32:50 +0000 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: