Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/internal/Magento/Framework/Filesystem/Driver/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

/**
* Class Http
*
*/
class Http extends File
{
Expand All @@ -36,6 +35,11 @@ public function isExists($path)

$status = $headers[0];

/* Handling 302 redirection */
if (strpos($status, '302 Found') !== false && isset($headers[1])) {
$status = $headers[1];
}

if (strpos($status, '200 OK') === false) {
$result = false;
} else {
Expand Down