mirror of
https://github.com/Intervention/image.git
synced 2025-08-14 09:54:13 +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);
|
$context = stream_context_create($options);
|
||||||
|
|
||||||
if ($data = @file_get_contents($url)) {
|
|
||||||
|
if ($data = @file_get_contents($url, false, $context)) {
|
||||||
return $this->initFromBinary($data);
|
return $this->initFromBinary($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user