Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

BaseHTTPRequestHandler incorrectly expects headers from HTTP/0.9 requests #139492

Copy link
Copy link

Description

@Carmina16
Issue body actions

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

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.