From 143c53cb201472b50a5092fc8d39dfdabba52e1c Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Thu, 13 Oct 2022 14:52:08 +1300 Subject: [PATCH] Always set 200 status code to match spec --- app/controllers/api/graphql.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/api/graphql.php b/app/controllers/api/graphql.php index 5c611c00b3..0669c1e02a 100644 --- a/app/controllers/api/graphql.php +++ b/app/controllers/api/graphql.php @@ -165,7 +165,9 @@ function executeRequest( ); $wg->wait(); - $response->json($output); + $response + ->setStatusCode(Response::STATUS_CODE_OK) + ->json($output); } /**