]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-103204: `http.server` - Enforce that HTTP version numbers must consist only of...
authorBen Kallus <49924171+kenballus@users.noreply.github.com>
Fri, 12 May 2023 20:25:58 +0000 (16:25 -0400)
committerGitHub <noreply@github.com>
Fri, 12 May 2023 20:25:58 +0000 (13:25 -0700)
commitcf720acfcbd8c9c25a706a4b6df136465a803992
tree5907abcc053c6355e63190ff0c2bc7124ca39225
parent25db95d224d18fb7b7f53165aeaa87632b0230f2
gh-103204: `http.server` - Enforce that HTTP version numbers must consist only of digits (#103205)

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

---------

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]