Skip to content

Commit 0a2b98f

Browse files
committed
fix: unsupported option
1 parent 6620d3b commit 0a2b98f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Application
1515
/**
1616
* @var string
1717
*/
18-
protected static $version = '1.0.4';
18+
protected static $version = '1.0.5';
1919

2020
public static function welcome()
2121
{

src/Server/Http.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ public function __construct()
3232
$config = config('servers');
3333
$httpConfig = $config['http'];
3434
$this->_config = $httpConfig;
35-
if ($httpConfig['settings']['only_simple_http'] ?? false) {
35+
if (isset($httpConfig['settings']['only_simple_http'])) {
3636
$this->_server = new HttpServer($httpConfig['ip'], $httpConfig['port'], $config['mode']);
3737
$this->_server->on('workerStart', [$this, 'onSimpleWorkerStart']);
3838
$this->_server->on('receive', [$this, 'onReceive']);
39+
unset($httpConfig['settings']['only_simple_http']);
3940
} else {
4041
$this->_server = new Server(
4142
$httpConfig['ip'],

0 commit comments

Comments
 (0)