Skip to content

Commit 7f82f01

Browse files
committed
Update Core.php
1 parent 807903a commit 7f82f01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Core.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public function __construct(array $config = [])
4343

4444
// X-Powered-By header
4545
if ( $config['--disable-powered-by'] !== true ) {
46-
header('X-Powered-By:FloatPHP');
46+
$generator = $config['--powered-by'] ?? 'FloatPHP';
47+
header("X-Powered-By: {$generator}");
4748
}
4849

4950
// Start session

0 commit comments

Comments
 (0)