disable guzzle http errors
This commit is contained in:
@@ -291,6 +291,8 @@ trait Modules
|
|||||||
'Accept' => 'application/json',
|
'Accept' => 'application/json',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
$data['http_errors'] = false;
|
||||||
|
|
||||||
$data = array_merge($data, $headers);
|
$data = array_merge($data, $headers);
|
||||||
|
|
||||||
$result = $client->request($method, $path, $data);
|
$result = $client->request($method, $path, $data);
|
||||||
|
@@ -18,6 +18,8 @@ trait SiteApi
|
|||||||
'Accept' => 'application/json',
|
'Accept' => 'application/json',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$data['http_errors'] = false;
|
||||||
|
|
||||||
$data = array_merge($data, $headers);
|
$data = array_merge($data, $headers);
|
||||||
|
|
||||||
$result = $client->get($url, $data);
|
$result = $client->get($url, $data);
|
||||||
|
@@ -5,7 +5,6 @@ namespace App\Utilities;
|
|||||||
use App\Traits\SiteApi;
|
use App\Traits\SiteApi;
|
||||||
use Cache;
|
use Cache;
|
||||||
use Date;
|
use Date;
|
||||||
use GuzzleHttp\Client;
|
|
||||||
|
|
||||||
class Versions
|
class Versions
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user