Skip to content

Commit

Permalink
Updated Download.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Shikha Mishra authored Jan 28, 2019
1 parent 1bb672c commit 5ba9c1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Downloadable/Helper/Download.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public function setResource($resourceFile, $linkType = self::LINK_TYPE_FILE)
/**
* check header for urls
*/
if ($this->_linkType === self::LINK_TYPE_URL) {
if ($linkType === self::LINK_TYPE_URL) {
$headers = array_change_key_case(get_headers($this->_resourceFile, 1), CASE_LOWER);
if(isset($headers['location'])){
$this->_resourceFile = is_array($headers['location']) ? current($headers['location']):
Expand Down

0 comments on commit 5ba9c1b

Please sign in to comment.