add clear

This commit is contained in:
2021-04-06 16:34:39 +08:00
parent f5b14a4565
commit 0569d1d752
+1
View File
@@ -784,6 +784,7 @@ class HttpClient
return $body;
}
$type = isset($data['content-type']) ? $data['content-type'] : (isset($data['Content-Type']) ? $data['Content-Type'] : 'text/html');
var_dump($type, $body);
if (strpos($type, 'text/html') !== false) {
return $body;
} else if (strpos($type, 'json') !== false) {