This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Middleware to set correct header for JSON output. | |
* Very basic initial version, simply checks the body of the response to see if it is valid JSON. | |
* If response is not JSON then continues with default settings. | |
* If response is JSON then header is updated. | |
* | |
* @author Richard Styles | |
*/ | |
namespace App\Middleware; |
NewerOlder