Skip to content

body decoding does not check content-type headers #84

@ethanniser

Description

@ethanniser

open api specs specify content-type headers for responses

if a api returns a "bad gateway" html page for example, the error should be "bad content type" rather than SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

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