From d9420b82c4ad6fcafefa31c7e5ad6cac7af20e51 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 17 Jan 2019 15:33:10 +0000 Subject: [PATCH] [fetch-data] Send content-length header --- logic/Actions/FetchData.php | 1 + 1 file changed, 1 insertion(+) diff --git a/logic/Actions/FetchData.php b/logic/Actions/FetchData.php index b4adc6a..11b57e1 100644 --- a/logic/Actions/FetchData.php +++ b/logic/Actions/FetchData.php @@ -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);