Correct JSON format for @response

This commit is contained in:
sempixel
2018-03-12 16:16:53 +01:00
committed by GitHub
parent 0925f83804
commit 9d20bd6d70

View File

@@ -67,7 +67,7 @@ abstract class AbstractGenerator
}
$responseTag = \array_first($responseTags);
return \response(\json_encode($responseTag->getContent()));
return \response($responseTag->getContent(), 200, ['content-type' => 'application/json']);
}
/**