From e7f3d015c62103e9ac0947981cd6cba2d6119cae Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 26 Dec 2009 01:00:38 +0000 Subject: [PATCH] Content-Length header for data pages --- core/page.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/page.class.php b/core/page.class.php index 96c91a14..287b1769 100644 --- a/core/page.class.php +++ b/core/page.class.php @@ -152,6 +152,7 @@ class Page { $layout->display_page($page); break; case "data": + header("Content-Length: ".strlen($this->data)); if(!is_null($this->filename)) { header('Content-Disposition: attachment; filename='.$this->filename); }