Skip to content

Commit 7d3786b

Browse files
committed
Set header Content-Type for graphql server template.
1 parent 394e949 commit 7d3786b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/graphql.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
<?php namespace ProcessWire;
22

3+
header('Content-Type: application/json');
4+
35
echo json_encode($modules->get('ProcessGraphQL')->executeGraphQL(), true);

0 commit comments

Comments
 (0)