mirror of
https://github.com/getformwork/formwork.git
synced 2025-01-17 21:49:04 +01:00
HTTP/1.1 by default
This commit is contained in:
parent
5fd1bde7bf
commit
8f399efaf5
@ -22,7 +22,7 @@ class Header
|
||||
*/
|
||||
public static function status(ResponseStatus $responseStatus, bool $send = true, bool $exit = false)
|
||||
{
|
||||
$protocol = $_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.0';
|
||||
$protocol = $_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.1';
|
||||
$responseStatus = implode(' ', [$protocol, $responseStatus->value]);
|
||||
if (!$send) {
|
||||
return $responseStatus;
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php header(($_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.0') . ' 500 Internal Server Error'); ?>
|
||||
<?php header(($_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.1') . ' 500 Internal Server Error'); ?>
|
||||
<?php include __DIR__ . '/partials/header.php' ?>
|
||||
<h2>The site is currently offline<br>due to technical problems</h2>
|
||||
<p>If you are the maintainer of this site, please run <code>composer install</code>. Composer autoloader was not found.</p>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php header(($_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.0') . ' 500 Internal Server Error'); ?>
|
||||
<?php header(($_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.1') . ' 500 Internal Server Error'); ?>
|
||||
<?php include __DIR__ . '/partials/header.php' ?>
|
||||
<h2>The site is currently offline<br>due to technical problems</h2>
|
||||
<p>If you are the maintainer of this site, please switch to a PHP version supported by the installed release of Formwork.</p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user