Skip to content

Commit c1f3552

Browse files
Merge remote-tracking branch '39558/bugfix/http-is-exists' into marcomprs
2 parents 7d69f6d + 97dffa7 commit c1f3552

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2017 Adobe
4+
* All Rights Reserved.
55
*/
66

77
namespace Magento\Framework\Filesystem\Driver;
@@ -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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2017 Adobe
4+
* All Rights Reserved.
55
*/
66
declare(strict_types=1);
77

@@ -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)