]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-103204: `http.server` - Enforce that HTTP version numbers must consist...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 12 May 2023 20:54:12 +0000 (13:54 -0700)
committerGitHub <noreply@github.com>
Fri, 12 May 2023 20:54:12 +0000 (20:54 +0000)
commitb4c1ca29ccd45c608ff01ce0a4608b1837715573
tree75ec5fb77528cb6b93909e0f636efa08e7fe9eed
parent705508850026dd13121b469290e27c29bd8ef20c
[3.11] gh-103204: `http.server` - Enforce that HTTP version numbers must consist only of digits (GH-103205) (#104438)

gh-103204: `http.server` - Enforce that HTTP version numbers must consist only of digits (GH-103205)

Reject HTTP requests with invalid http/x.y version numbers: x or y being non-digits or too-long.

---------

(cherry picked from commit cf720acfcbd8c9c25a706a4b6df136465a803992)

Co-authored-by: Ben Kallus <49924171+kenballus@users.noreply.github.com>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Lib/http/server.py
Lib/test/test_httpservers.py
Misc/NEWS.d/next/Library/2023-04-02-23-05-22.gh-issue-103204.bbDmu0.rst [new file with mode: 0644]