Skip to content

Commit

Permalink
fixed - can't import external http to https redirecting images by def…
Browse files Browse the repository at this point in the history
…ault csv import
  • Loading branch information
rahul committed Oct 28, 2018
1 parent 4421098 commit 3a88a38
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 @@ -35,6 +35,11 @@ public function isExists($path)

$status = $headers[0];

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

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

0 comments on commit 3a88a38

Please sign in to comment.