Skip to content

Commit

Permalink
SECURITY-480: build fix
Browse files Browse the repository at this point in the history
Co-authored-by: Laszlo Losonczy <[email protected]>
  • Loading branch information
knagy and losonczylaci committed Jun 14, 2024
1 parent a9db444 commit 08c101f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/Escher/Test/EndToEnd/CentralTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function authenticateTests(JsonTestCase $testCase)
'REQUEST_TIME' => $testCase->getCurrentTime()->format('U'),
'HTTPS' => 'on',
'SERVER_PORT' => '443',
'SERVER_NAME' => $request['headers']['Host'],
'SERVER_NAME' => $request['headers']['Host'] ?? $request['headers']['host'] ?? null,
];
foreach ($request['headers'] as $k => $v) {
$serverVars['HTTP_' . str_replace('-', '_', strtoupper($k))] = $v;
Expand Down

0 comments on commit 08c101f

Please sign in to comment.