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