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:
parent
6e7789c40b
commit
864e823447
@ -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); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user