Skip to content

Commit ee1f478

Browse files
committed
Removed OK phrase
1 parent 3f12d15 commit ee1f478

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/internal/Magento/Framework/Filesystem/Driver/Http.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function isExists($path)
3636
$status = $headers[1];
3737
}
3838

39-
return !(strpos($status, '200 OK') === false);
39+
return !(strpos($status, '200') === false);
4040
}
4141

4242
/**

lib/internal/Magento/Framework/Filesystem/Test/Unit/Driver/HttpTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function testIsExists(string $status, bool $result): void
6262
*/
6363
public static function dataProviderForTestIsExists(): array
6464
{
65-
return [['200 OK', true], ['404 Not Found', false]];
65+
return [['200 OK', true], ['200', true], ['404 Not Found', false]];
6666
}
6767

6868
/**

0 commit comments

Comments
 (0)