Reject HTTP/1.1 requests without Host header#12264
Reject HTTP/1.1 requests without Host header#12264Dreamsorcerer merged 9 commits intoaio-libs:masterfrom
Conversation
add host header to request test payloads
for more information, see https://pre-commit.ci
Merging this PR will degrade performance by 21.87%
|
| Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|
| 👁 | test_ten_streamed_responses_iter_chunks[pyloop] |
119.6 ms | 153.1 ms | -21.87% |
Comparing Cycloctane:reject-requests-without-host-header (a5b1563) with master (bec74bb)
Footnotes
-
4 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #12264 +/- ##
=======================================
Coverage 98.92% 98.92%
=======================================
Files 133 133
Lines 46551 46563 +12
Branches 2423 2424 +1
=======================================
+ Hits 46049 46061 +12
Misses 373 373
Partials 129 129
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
@Cycloctane If it helps you any I'm also bringing this conversation up with llhttp since I believe this is something that llhttp should be able to block at it's level if a flag for it is set. nodejs/llhttp#816 |
Backport to 3.14: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply af05010 on top of patchback/backports/3.14/af05010f61ca9be00a98a0885c8ae213adf4cf45/pr-12264 Backporting merged PR #12264 into master
🤖 @patchback |
(cherry picked from commit af05010)
What do these changes do?
BadHttpMessagewhen a HTTP/1.1 request does not set host headerAre there changes in behavior for the user?
Is it a substantial burden for the maintainers to support this?
Related issue number
Fixes #10600
Checklist
CONTRIBUTORS.txtCHANGES/folder