update rm deadcode
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Http\Services\vCenter;
|
||||
|
||||
use App\Support\Cache\CacheKey;
|
||||
use App\Support\TlsHttpClientFactory;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
@@ -438,7 +439,7 @@ class SnapshotService
|
||||
' . $soapBody . '
|
||||
</soapenv:Envelope>';
|
||||
|
||||
curl_setopt_array($curl, array(
|
||||
curl_setopt_array($curl, [
|
||||
CURLOPT_URL => "https://$host/sdk",
|
||||
CURLOPT_RETURNTRANSFER => true,
|
||||
CURLOPT_ENCODING => '',
|
||||
@@ -449,10 +450,8 @@ class SnapshotService
|
||||
CURLOPT_CUSTOMREQUEST => 'POST',
|
||||
CURLOPT_POSTFIELDS => $payload,
|
||||
CURLOPT_HTTPHEADER => $headers,
|
||||
CURLOPT_SSL_VERIFYHOST => false,
|
||||
CURLOPT_SSL_VERIFYPEER => false,
|
||||
CURLOPT_HEADER => true // We need headers for cookie
|
||||
));
|
||||
] + TlsHttpClientFactory::vCenterCurlOptions());
|
||||
|
||||
$response = curl_exec($curl);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user