add clear
This commit is contained in:
@@ -623,7 +623,7 @@ class HttpClient
|
||||
if (is_array($body)) {
|
||||
return $body;
|
||||
}
|
||||
$type = $data['content-type'];
|
||||
$type = $data['content-type'] ?? 'text/html';
|
||||
if (strpos($type, 'text/html') !== false) {
|
||||
return $body;
|
||||
} else if (strpos($type, 'json') !== false) {
|
||||
|
||||
Reference in New Issue
Block a user