Use HTTP/1.1

This commit is contained in:
Shish 2023-02-07 13:56:44 +00:00
parent ea29e7c954
commit fadadc0efd
3 changed files with 3 additions and 3 deletions

View file

@ -230,7 +230,7 @@ class BasePage
public function send_headers(): void public function send_headers(): void
{ {
if (!headers_sent()) { if (!headers_sent()) {
header("HTTP/1.0 {$this->code} Shimmie"); header("HTTP/1.1 {$this->code} Shimmie");
header("Content-type: " . $this->mime); header("Content-type: " . $this->mime);
header("X-Powered-By: Shimmie-" . VERSION); header("X-Powered-By: Shimmie-" . VERSION);

View file

@ -30,7 +30,7 @@ class Downtime extends Extension
$msg = $config->get_string("downtime_message"); $msg = $config->get_string("downtime_message");
$this->theme->display_message($msg); $this->theme->display_message($msg);
if (!defined("UNITTEST")) { // hax D: if (!defined("UNITTEST")) { // hax D:
header("HTTP/1.0 {$page->code} Downtime"); header("HTTP/1.1 {$page->code} Downtime");
print($page->data); print($page->data);
exit; exit;
} }

View file

@ -170,7 +170,7 @@ class IPBan extends Extension
$event->user->class = $_shm_user_classes["ghost"]; $event->user->class = $_shm_user_classes["ghost"];
} }
} else { } else {
header("HTTP/1.0 403 Forbidden"); header("HTTP/1.1 403 Forbidden");
print "$msg"; print "$msg";
exit; exit;
} }