Skip to content

unreachable panic triggered if using client::conn with the Version set to HTTP_2 #1770

Closed
@seanmonstar

Description

@seanmonstar

While the Server and Client will both coerce Version::HTTP_2 to HTTP_11, the client::conn::SendRequest doesn't do that. Thus, this panic is triggered.

It seems best to just add a case for it just like there is in the server encode path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-clientArea: client.A-http1Area: HTTP/1 specific.C-bugCategory: bug. Something is wrong. This is bad!E-easyEffort: easy. A task that would be a great starting point for a new contributor.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions