Skip to content

When acting as a client, processing HTTP/1.0 responses fails #192

Open
@vulpyne

Description

@vulpyne

It seems like this line is the issue:

ensure_eq!(version, 1, "Unsupported HTTP version");

It is my understanding there shouldn't be a meaningful difference parsing a HTTP/1.0 with a 1.1 parser since the only differences are some extra headers and possible result codes which wouldn't exist in the 1.0 response.

httparse_res.version will be 0 in the case of a HTTP/1.0 response. Perhaps that code is attempting to match on the major version number, however httparse uses that field for the minor one which is a bit unintuitive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions