diff --git a/lib/Controller.php b/lib/Controller.php index dee03fe6..c97485a7 100644 --- a/lib/Controller.php +++ b/lib/Controller.php @@ -151,6 +151,8 @@ class Controller header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Methods: GET, POST, PUT, DELETE'); header('Access-Control-Allow-Headers: X-Requested-With, Content-Type'); + header('X-Uncompressed-Content-Length: ' . strlen($this->_json)); + header('Access-Control-Expose-Headers: X-Uncompressed-Content-Length'); echo $this->_json; } else { $this->_view();