add clear
This commit is contained in:
@@ -623,7 +623,6 @@ class HttpClient
|
|||||||
private function curl($url, $data = [])
|
private function curl($url, $data = [])
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
var_dump($url);
|
|
||||||
$output = $this->curlParse($url, $data);
|
$output = $this->curlParse($url, $data);
|
||||||
if ($output === FALSE) {
|
if ($output === FALSE) {
|
||||||
return new Result(['code' => 500, 'message' => $output]);
|
return new Result(['code' => 500, 'message' => $output]);
|
||||||
@@ -660,6 +659,7 @@ class HttpClient
|
|||||||
}
|
}
|
||||||
curl_setopt($ch, CURLOPT_HEADER, true);
|
curl_setopt($ch, CURLOPT_HEADER, true);
|
||||||
|
|
||||||
|
var_dump($url, $this->parseHeaderMat());
|
||||||
if ($headers = $this->parseHeaderMat()) {
|
if ($headers = $this->parseHeaderMat()) {
|
||||||
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
|
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user