Skip to content

JSON assertions fail without Content-Type response header #339

@FND

Description

@FND

If the server responds with a JSON payload without also providing the appropriate content type, response_json_paths assertions result in a cryptic error:

left hand side json path […] cannot match None

I believe this this was a design decision early on (IIRC), expecting well-behaved servers - thus defying Postel. In my case, I have no control over the server in question, so there's no reasonable way for me to use Gabbi here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions