Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dont parse errors as JSON unless Content-Type is set to JSON #4013

Merged
merged 1 commit into from
Aug 28, 2023

Commits on Aug 28, 2023

  1. Dont parse errors as JSON unless Content-Type is set to JSON

    Client attempts to parse the body of every error it receives as JSON
    regardless of the content-type. This commit rectifies by only parsing
    he error body as JSON if the Content-Type header is set to
    either "application/json" or "application/vnd.api+json".
    
    Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
    milosgajdos committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    45b7b9c View commit details
    Browse the repository at this point in the history