Skip to content

Commit 3a88a38

Browse files
author
rahul
committed
fixed - can't import external http to https redirecting images by default csv import
1 parent 4421098 commit 3a88a38

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
@@ -35,6 +35,11 @@ public function isExists($path)
3535

3636
$status = $headers[0];
3737

38+
/* Handling 302 redirection */
39+
if (strpos($status, '302 Found') !== false && isset($headers[1])) {
40+
$status = $headers[1];
41+
}
42+
3843
if (strpos($status, '200 OK') === false) {
3944
$result = false;
4045
} else {

0 commit comments

Comments
 (0)