]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-54930: Send a status line in error responses to malformed request lines (GH-152980)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 5 Jul 2026 10:48:23 +0000 (13:48 +0300)
committerGitHub <noreply@github.com>
Sun, 5 Jul 2026 10:48:23 +0000 (13:48 +0300)
commit2ab620b41af57e24c11c131bec02f682561ecfaa
tree11357ddbd9ae092cab01cd80e61d5337ee636d5e
parent9f9787d83462f5b44cb59e3c69e7c1799612a33f
gh-54930: Send a status line in error responses to malformed request lines (GH-152980)

Previously such error responses were sent in the bare HTTP/0.9 style,
without a status line and headers.

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]