[fetch-data] Send content-length header

This commit is contained in:
Starbeamrainbowlabs 2019-01-17 15:33:10 +00:00
parent 845deedd36
commit d9420b82c4
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ class FetchData implements IAction {
header("cache-control: public, max-age=" . $this->settings->get("cache.max-age"));
}
header("content-length: " . strlen($response));
header("content-type: application/json");
header("x-time-taken: " . PerfFormatter::format_perf_data($start_time, $start_handle, $start_encode));
echo($response);