1
0
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:
Oliver Vogel
2017-01-20 18:22:30 +01:00
committed by GitHub

View File

@@ -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);
}