fixed kilo in metals 6
This commit is contained in:
@@ -78,12 +78,9 @@ class MontzarService
|
||||
|
||||
$response = Http::timeout(7)
|
||||
->acceptJson()
|
||||
->withOptions([
|
||||
'curl' => [
|
||||
CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4,
|
||||
CURLOPT_TCP_FASTOPEN => 1,
|
||||
],
|
||||
])
|
||||
->withOptions(self::httpClientOptions(
|
||||
defined('CURLOPT_TCP_FASTOPEN') ? [(int) constant('CURLOPT_TCP_FASTOPEN') => 1] : []
|
||||
))
|
||||
->withToken($token)
|
||||
->get($this->endpoint('/server/customer/product/list'))
|
||||
->json();
|
||||
|
||||
@@ -84,11 +84,7 @@ class WebsocketBroadcastService
|
||||
try {
|
||||
$response = Http::timeout(3)
|
||||
->withHeaders(['Content-Type' => 'application/json'])
|
||||
->withOptions([
|
||||
'curl' => [
|
||||
CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4,
|
||||
],
|
||||
])
|
||||
->withOptions(\App\Http\Controllers\Controller::httpClientOptions())
|
||||
->post($url, $body);
|
||||
|
||||
if (! $response->successful()) {
|
||||
|
||||
Reference in New Issue
Block a user