]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] 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:22:09 +0000 (13:22 +0200)
committerGitHub <noreply@github.com>
Sun, 5 Jul 2026 11:22:09 +0000 (11:22 +0000)
commit7d3b991f4a064e01e1211c31cb5bf3fb62a510d1
tree13d75a6398040a075bed359ad94323c15e096e25
parenta862fbc7f00931d4ac85dc6dc5a22cbe35f08c7d
[3.15] gh-54930: Send a status line in error responses to malformed request lines (GH-152980) (GH-153092)

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]