Skip to content

http.server.BaseHTTPRequestHandler.parse_request func has bug!!! #124271

@Firebasky

Description

@Firebasky

Bug report

Bug description:

# Add a code block here, if required

in:https://github.com/python/cpython/blob/main/Lib/http/server.py#L307
If the requested version is HTTP/2, there will be an exception.

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions