]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-54930: Send a status line in error responses to malformed request lines...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 5 Jul 2026 11:14:05 +0000 (13:14 +0200)
committerGitHub <noreply@github.com>
Sun, 5 Jul 2026 11:14:05 +0000 (11:14 +0000)
commite7f235c5ec25461cafa4a4034b1d2f1214fd5575
tree096bfa9a506b9b618b1a1940522266f7948e4a0a
parentecc59ff24a089c57e434bfc4f3a1f9f1dd41955c
[3.13] gh-54930: Send a status line in error responses to malformed request lines (GH-152980) (GH-153094)

Previously such error responses were sent in the bare HTTP/0.9 style,
without a status line and headers.
(cherry picked from commit 2ab620b41af57e24c11c131bec02f682561ecfaa)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Lib/http/server.py
Lib/test/test_httpservers.py
Misc/NEWS.d/next/Library/2026-07-03-21-10-00.gh-issue-54930.hq09Er.rst [new file with mode: 0644]