diff options
author | Bénédikt Tran <10796600+picnixz@users.noreply.github.com> | 2025-05-17 09:58:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-17 09:58:16 +0200 |
commit | faac627e47f72797f5b7a65134bf4cdce6575ee9 (patch) | |
tree | aaaa6db7525b980b2088cca57bffe66288443afa /Lib/http/client.py | |
parent | 2f1ecb3bc474a5895dce090cca7b8afe7b560040 (diff) | |
download | cpython-faac627e47f72797f5b7a65134bf4cdce6575ee9.tar.gz cpython-faac627e47f72797f5b7a65134bf4cdce6575ee9.zip |
gh-133810: remove `http.server.CGIHTTPRequestHandler` and `--cgi` flag (#133811)
The CGI HTTP request handler has been deprecated since Python 3.13.
Diffstat (limited to 'Lib/http/client.py')
-rw-r--r-- | Lib/http/client.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Lib/http/client.py b/Lib/http/client.py index 33a858d34ae..e7a1c7bc3b2 100644 --- a/Lib/http/client.py +++ b/Lib/http/client.py @@ -181,11 +181,10 @@ def _strip_ipv6_iface(enc_name: bytes) -> bytes: return enc_name class HTTPMessage(email.message.Message): - # XXX The only usage of this method is in - # http.server.CGIHTTPRequestHandler. Maybe move the code there so - # that it doesn't need to be part of the public API. The API has - # never been defined so this could cause backwards compatibility - # issues. + + # The getallmatchingheaders() method was only used by the CGI handler + # that was removed in Python 3.15. However, since the public API was not + # properly defined, it will be kept for backwards compatibility reasons. def getallmatchingheaders(self, name): """Find all header lines matching a given header name. |