Skip to content

Commit c8fc3d8

Browse files
committed
fix: HTTP tests fail when forceGlobalSecureRequests is true
1 parent fe40d94 commit c8fc3d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

system/Test/FeatureTestTrait.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,9 @@ protected function setupRequest(string $method, ?string $path = null): IncomingR
292292

293293
if ($config->forceGlobalSecureRequests) {
294294
$_SERVER['HTTPS'] = 'test';
295+
$server = $request->getServer();
296+
$server['HTTPS'] = 'test';
297+
$request->setGlobal('server', $server);
295298
}
296299

297300
return $request;

0 commit comments

Comments
 (0)