]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] 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:15:38 +0000 (13:15 +0200)
committerGitHub <noreply@github.com>
Sun, 5 Jul 2026 11:15:38 +0000 (11:15 +0000)
commit553d7fa22826f65e14daf9e8c53ef0712467dca8
treea2b5e679743cf68891225e746897fec00d1b6dfa
parentc8047891c75bda51fc773bc289f3cdf50d224b3d
[3.14] gh-54930: Send a status line in error responses to malformed request lines (GH-152980) (GH-153093)

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]