From e8b44878b76cf88ca01728d157e84e1f4eb07bfa Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 29 Sep 2026 18:23:11 +0200 Subject: [PATCH] B3 fix: the over-bound header test must be over the bound The previous commit's over-bound case used floor(bound / line) lines, which can still fit under the bound once the status and Content-Length lines are counted; the answer was accepted and the test failed. It now sends one whole line more. Co-Authored-By: Claude Sonnet 5 --- src/drivers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers.rs b/src/drivers.rs index 78eb028..89d5a3a 100644 --- a/src/drivers.rs +++ b/src/drivers.rs @@ -8657,10 +8657,10 @@ mod tests { } }; let lines = ROUTE_HTTP_MAX_HEADER_BYTES / filler.len(); - // Just inside the bound, then just outside it. + // Just inside the bound, then just outside it (a whole line over). challenge(scripted_peer(answer_with(lines - 2)), |_| {}).expect("headers inside the bound"); assert_refused( - challenge(scripted_peer(answer_with(lines)), |_| {}), + challenge(scripted_peer(answer_with(lines + 1)), |_| {}), "headers over the bound together", ); }