This commit is contained in:
Starbeamrainbowlabs 2019-01-15 23:03:53 +00:00
parent ca955f3c89
commit 0a5588a905
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -78,6 +78,8 @@ class FetchData implements IAction {
$response = json_encode($data); $response = json_encode($data);
// 4: Send response // 4: Send response
// TODO: Add cache-control headers here in production mode only
header("content-type: application/json"); header("content-type: application/json");
header("x-time-taken: " . PerfFormatter::format_perf_data($start_time, $start_handle, $start_encode)); header("x-time-taken: " . PerfFormatter::format_perf_data($start_time, $start_handle, $start_encode));
echo($response); echo($response);