Use HTTP/1.1
This commit is contained in:
parent
ea29e7c954
commit
fadadc0efd
3 changed files with 3 additions and 3 deletions
|
@ -230,7 +230,7 @@ class BasePage
|
|||
public function send_headers(): void
|
||||
{
|
||||
if (!headers_sent()) {
|
||||
header("HTTP/1.0 {$this->code} Shimmie");
|
||||
header("HTTP/1.1 {$this->code} Shimmie");
|
||||
header("Content-type: " . $this->mime);
|
||||
header("X-Powered-By: Shimmie-" . VERSION);
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ class Downtime extends Extension
|
|||
$msg = $config->get_string("downtime_message");
|
||||
$this->theme->display_message($msg);
|
||||
if (!defined("UNITTEST")) { // hax D:
|
||||
header("HTTP/1.0 {$page->code} Downtime");
|
||||
header("HTTP/1.1 {$page->code} Downtime");
|
||||
print($page->data);
|
||||
exit;
|
||||
}
|
||||
|
|
|
@ -170,7 +170,7 @@ class IPBan extends Extension
|
|||
$event->user->class = $_shm_user_classes["ghost"];
|
||||
}
|
||||
} else {
|
||||
header("HTTP/1.0 403 Forbidden");
|
||||
header("HTTP/1.1 403 Forbidden");
|
||||
print "$msg";
|
||||
exit;
|
||||
}
|
||||
|
|
Reference in a new issue