add clear

This commit is contained in:
2020-12-02 18:49:18 +08:00
parent 2898481696
commit aec9c53e5a
+1 -1
View File
@@ -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);
} }