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