add clear

This commit is contained in:
2020-05-22 15:17:24 +08:00
parent 0a3c8ad5c3
commit 9c415292a4
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -706,7 +706,7 @@ class HttpClient
if (is_array($body)) {
return $body;
}
$type = $data['content-type'] ?? 'text/html';
$type = $data['Content-Type'] ?? 'text/html';
if (strpos($type, 'text/html') !== false) {
return $body;
} else if (strpos($type, 'json') !== false) {