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 Dec 27, 2018
1 parent 76040cc commit d5b7745
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 d5b7745

Please sign in to comment.