mirror of
https://github.com/graphql-hive/console
synced 2026-05-24 09:38:26 +00:00
Handle */* as well
This commit is contained in:
parent
65546ba49b
commit
3b3ec5aa76
1 changed files with 1 additions and 1 deletions
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue