Handle */* as well

This commit is contained in:
Kamil Kisiela 2022-10-06 16:19:52 +02:00 committed by GitHub
parent 65546ba49b
commit 3b3ec5aa76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -241,7 +241,7 @@ export const graphqlHandler = (options: GraphQLHandlerOptions): RouteHandlerMeth
const accept = req.headers.accept;
if (!accept) {
if (!accept || accept === '*/*') {
reply.header('content-type', 'application/json');
}