Skip to content

Commit

Permalink
fixup! fix: Migrate security headers check tests and fix the SetupChe…
Browse files Browse the repository at this point in the history
…ck implementation

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc committed Mar 12, 2024
1 parent 97a1ca6 commit 27eee79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/settings/lib/SetupChecks/SecurityHeaders.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function run(): SetupResult {

foreach ($urls as [$verb,$url,$validStatuses]) {
$works = null;
foreach ($this->runRequest($url, $verb, ['httpErrors' => false]) as $response) {
foreach ($this->runRequest($verb, $url, ['httpErrors' => false]) as $response) {
// Check that the response status matches
if (!in_array($response->getStatusCode(), $validStatuses)) {
$works = false;
Expand Down

0 comments on commit 27eee79

Please sign in to comment.