BaseHTTPRequestHandler incorrectly expects headers from HTTP/0.9 requests #139492
Closed as duplicate of#70765
BaseHTTPRequestHandler incorrectly expects headers from HTTP/0.9 requests #139492
Bug report
Bug description:
The
HTTPServerclass seems to have issues with pre-HTTP 1.0 type requests. The request is not passed to theGEThandler until the client closes the connection.Maybe the
BaseHTTPRequestHandlertries to read non-existent headers or wants an empty line in the request?CPython versions tested on:
3.12
Operating systems tested on:
Windows
Linked PRs