Skip to content

Commit 8da739e

Browse files
committed
refactor: simplify protocol determination in HttpServer
1 parent 577e6b2 commit 8da739e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Transports/HttpServer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct(
4242
private readonly bool $runLoop = true,
4343
) {
4444
$this->listenAddress = "{$host}:{$port}";
45-
$this->protocol = $this->sslContext !== [] ? 'https' : 'http';
45+
$this->protocol = !empty($this->sslContext) ? 'https' : 'http';
4646

4747
$this->mcpPath = '/' . \trim($mcpPath, '/');
4848

0 commit comments

Comments
 (0)