mirror of
https://github.com/Intervention/image.git
synced 2025-08-13 09:24:05 +02:00
Merge pull request #671 from mmjjb/patch-2
Add user agent header initFromUrl
This commit is contained in:
@@ -72,7 +72,8 @@ abstract class AbstractDecoder
|
||||
|
||||
$context = stream_context_create($options);
|
||||
|
||||
if ($data = @file_get_contents($url)) {
|
||||
|
||||
if ($data = @file_get_contents($url, false, $context)) {
|
||||
return $this->initFromBinary($data);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user