Skip to content

BaseHTTPRequestHandler incorrectly expects headers from HTTP/0.9 requests #139492

@Carmina16

Description

@Carmina16

Bug report

Bug description:

The HTTPServer class seems to have issues with pre-HTTP 1.0 type requests. The request is not passed to the GET handler until the client closes the connection.

Maybe the BaseHTTPRequestHandler tries 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

Metadata

Metadata

Assignees

Labels

stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions