add clear
This commit is contained in:
@@ -554,7 +554,7 @@ class HttpClient
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
$contentType = $this->header['Content-Type'] ?? 'application/json';
|
||||
$contentType = $this->header['Content-Type'] ?? null;
|
||||
if (strpos($contentType, 'json') !== false) {
|
||||
return Help::toJson($data);
|
||||
} else if (strpos($contentType, 'xml') !== false) {
|
||||
|
||||
Reference in New Issue
Block a user