movio / bramble

A federated GraphQL API gateway
https://movio.github.io/bramble/
MIT License
497 stars 55 forks source link

Remove charset from Accept header #261

Closed pkqk closed 3 months ago

pkqk commented 3 months ago

The npm module graphql-http is checking the Accept header and is looking for utf8 in the charset instead of utf-8.

https://github.com/graphql/graphql-http/blob/v1.22.0/src/handler.ts#L593

JSON is almost always encoded in UTF-8 so we should be ok not specifying that.

I've raised an issue: https://github.com/graphql/graphql-http/issues/120