Enabled compression
This commit is contained in:
parent
c3fb15abb9
commit
214b551d32
|
@ -15,7 +15,7 @@ ini_set('display_errors', 1);
|
||||||
ini_set('display_startup_errors', 1);
|
ini_set('display_startup_errors', 1);
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
|
|
||||||
$http = new Server("localhost", 80);
|
$http = new Server("localhost", 9501);
|
||||||
|
|
||||||
$http
|
$http
|
||||||
->set([
|
->set([
|
||||||
|
@ -23,6 +23,8 @@ $http
|
||||||
'document_root' => __DIR__ . '/../public',
|
'document_root' => __DIR__ . '/../public',
|
||||||
'enable_static_handler' => true,
|
'enable_static_handler' => true,
|
||||||
'timeout' => 4,
|
'timeout' => 4,
|
||||||
|
'http_compression' => true,
|
||||||
|
'http_compression_level' => 6,
|
||||||
])
|
])
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue