Skip to content

Commit 22abbcb

Browse files
author
rahul
committed
fixed - can't import external http to https redirecting images by default csv import
1 parent 77af5d6 commit 22abbcb

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

3737
$status = $headers[0];
3838

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

0 commit comments

Comments
 (0)