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 Dec 27, 2018
1 parent c4fb1ee commit 76040cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/code/Magento/Downloadable/Helper/Download.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ public function getContentType()
return $this->_downloadableFile->getFileType($this->_resourceFile);
}
} elseif ($this->_linkType == self::LINK_TYPE_URL) {
if(is_array($this->_handle->stat($this->_resourceFile)['type'])){
return end($this->_handle->stat($this->_resourceFile)['type']);
}else
return $this->_handle->stat($this->_resourceFile)['type'];
}
return $this->_contentType;
Expand Down

0 comments on commit 76040cc

Please sign in to comment.