Closed gruzdev closed 6 days ago
And this is how Apollo just ignores UTF-8 BOM after opening curly:
$ echo -ne '{"query": "{\xEF\xBB\xBF__typename }"}' | curl -X POST -H "Content-Type: application/json" --data-binary @- http://localhost:4000
{"data":{"__typename":"Query"}}
UnicodeBOM must be ignored everywhere in a document not just at the beginning.