add clear
This commit is contained in:
@@ -666,7 +666,11 @@ class HttpClient
|
||||
}
|
||||
|
||||
curl_setopt($ch, CURLOPT_HEADER, true);
|
||||
curl_setopt($ch, CURLOPT_HTTPHEADER, $this->parseHeaderMat());
|
||||
|
||||
$headers = $this->parseHeaderMat();
|
||||
if (!empty($headers) && is_array($headers)) {
|
||||
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
|
||||
}
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, $this->agent);
|
||||
|
||||
if (file_exists($cert = $this->getSslCertFile())) {
|
||||
|
||||
Reference in New Issue
Block a user