Skip to content

Commit

Permalink
Updated Http.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Shikha Mishra authored and Amol Chaudhari committed Feb 15, 2019
1 parent f0670b6 commit 04f6cfe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/internal/Magento/Framework/Filesystem/Driver/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ public function isExists($path)
if (strpos($status, '302 Found') !== false && isset($headers[1])) {
$status = $headers[1];
}

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

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

0 comments on commit 04f6cfe

Please sign in to comment.