Repository navigation
Conversation
… lines GET, HEAD and OPTIONS bodies were parsed as the next request. Whitespace before the colon and obs-fold lines now get 400.
|
Important Review skippedToo many files! This PR contains 129 files, which is 29 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. CodeRabbit couldn't verify your organization's usage billing state, so no usage-priced review was started. Retry after the billing service recovers.
|
sha=c4c91660b0fef49d5625870822c4e396f86eeb9b
🤖 Salam AI reviewVerdict: commit Maximum steps for this agent have been reached. Summary of work so far: I reviewed the PR diff for Remaining tasks not completed: I did not run the Salam compiler/tests or inspect the full repository/test harness, and I could not verify the separate Content-Length overflow fix ordering. Recommendations: Before merging, verify the overflow fix is already in place, run
|
|
Replaced by 3743, the same change rebased onto main. |
GET, HEAD and OPTIONS ignored Content-Length, so their body was read as the next pipelined request. Header lines with whitespace before the colon and obs-fold continuation lines were silently skipped instead of rejected.
Content-Length is now honoured for every method (the body is read and available like any other). Any field line that starts with whitespace or has whitespace between the name and the colon gets 400, as RFC 9112 sections 5.1 and 5.2 require. Transfer-Encoding and duplicate or non-digit Content-Length are still rejected as before.
Tested: new cases in tests/en/general/net_http_smuggling (one response for GET/HEAD/OPTIONS with a body, 400 for the bad field lines; before the fix they gave two responses and 200), plus the nearby net_http tests.
This should merge after #3737 (the Content-Length overflow fix), since that bug becomes reachable through GET too once GET bodies are read.