mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-22 06:23:01 +00:00
[fetch-data] Send content-length header
This commit is contained in:
parent
845deedd36
commit
d9420b82c4
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue