From 864e8234475b93a31f8332d3baa46a494362c8ac Mon Sep 17 00:00:00 2001 From: "green-ponies (jgen)" Date: Sun, 11 Sep 2011 21:26:23 -0400 Subject: [PATCH] Small change to headers for efficiency. These two headers are always sent and do not need to be added to the header queue. (wastes time) --- core/page.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/page.class.php b/core/page.class.php index 613da209..ae801576 100644 --- a/core/page.class.php +++ b/core/page.class.php @@ -167,8 +167,8 @@ class Page { public function display() { global $page; - $this->add_http_header("Content-type: {$this->type}", 1); - $this->add_http_header("X-Powered-By: SCore-".SCORE_VERSION, 2); + header("Content-type: ".$this->type); + header("X-Powered-By: SCore-".SCORE_VERSION); if (!headers_sent()) { foreach($this->http_headers as $head){ header($head); }