Skip to content

GraphQL Errors don't have correct content type #218

@Martmists-GH

Description

@Martmists-GH

Query:

query {
  nonExistentQuery
}

Response:

// Content-Type: text/plain;charset=UTF-8
{
  "errors": [
    {
      "message": "Property nonExistentQuery on Query does not exist",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": []
    }
  ]
}

The expected behaviour is to have content-type of application/json on errors, which it already does on successes.

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