Skip to content

Non-conformant Accept header #488

@vfaronov

Description

@vfaronov

With the recent fix for #470, HTTPie sends:

Accept: application/json, */*

This header is not quite correct. According to RFC 7231 § 5.3.2, it says: “I accept JSON or anything else”. Because there are no explicit quality values (q=) specified for either media range, they are both assumed to be 1, so application/json and */* are equally acceptable.

*/* should be marked with a lower quality value, for example:

Accept: application/json, */*;q=0.5

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