Skip to content

Commit d5b7745

Browse files
author
Shikha Mishra
authored
Updated Http.php
1 parent 76040cc commit d5b7745

File tree

1 file changed

+5
-0
lines changed
  • lib/internal/Magento/Framework/Filesystem/Driver

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ public function isExists($path)
3939
if (strpos($status, '302 Found') !== false && isset($headers[1])) {
4040
$status = $headers[1];
4141
}
42+
43+
/* Handling 301 redirection */
44+
if (strpos($status, '301 Moved Permanently') !== false && isset($headers[1])) {
45+
$status = $headers[1];
46+
}
4247

4348
if (strpos($status, '200 OK') === false) {
4449
$result = false;

0 commit comments

Comments
 (0)