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)
This commit is contained in:
green-ponies (jgen) 2011-09-11 21:26:23 -04:00
parent 6e7789c40b
commit 864e823447

View File

@ -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); }