Merge pull request #823 from tomyvi/patch-2
Disable SSL checks on API calls
This commit is contained in:
commit
02dfed0bc7
1 changed files with 7 additions and 1 deletions
|
@ -191,7 +191,13 @@ class ItemController extends Controller
|
|||
'icon' => $path,
|
||||
]);
|
||||
} elseif (strpos($request->input('icon'), 'http') === 0) {
|
||||
$contents = file_get_contents($request->input('icon'));
|
||||
$options=array(
|
||||
"ssl"=>array(
|
||||
"verify_peer"=>false,
|
||||
"verify_peer_name"=>false,
|
||||
),
|
||||
);
|
||||
$contents = file_get_contents($request->input('icon'), false, stream_context_create($options));
|
||||
|
||||
if ($application) {
|
||||
$icon = $application->icon;
|
||||
|
|
Loading…
Reference in a new issue