Loading src/Controller/WellKnownController.php +2 −1 Original line number Diff line number Diff line Loading @@ -46,7 +46,8 @@ class WellKnownController extends ControllerBase { ], ]; $response = new CacheableJsonResponse(json_encode($body, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES), 200, [], TRUE); // Wrap $body in an array to convert the response to array. $response = new CacheableJsonResponse(json_encode([$body], JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES), 200, [], TRUE); $response->addCacheableDependency($cacheMeta); return $response; } Loading Loading
src/Controller/WellKnownController.php +2 −1 Original line number Diff line number Diff line Loading @@ -46,7 +46,8 @@ class WellKnownController extends ControllerBase { ], ]; $response = new CacheableJsonResponse(json_encode($body, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES), 200, [], TRUE); // Wrap $body in an array to convert the response to array. $response = new CacheableJsonResponse(json_encode([$body], JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES), 200, [], TRUE); $response->addCacheableDependency($cacheMeta); return $response; } Loading