add clear
This commit is contained in:
@@ -467,15 +467,10 @@ class HttpClient
|
||||
if (is_array($body)) {
|
||||
return $body;
|
||||
}
|
||||
if (strpos($type, 'json') !== false) {
|
||||
return json_decode($body, true);
|
||||
} else if (strpos($type, 'xml') !== false) {
|
||||
return Help::toArray($body);
|
||||
} else if (strpos($type, 'plain') !== false) {
|
||||
return Help::toArray($body);
|
||||
} else {
|
||||
if (strpos($type, 'html') !== false) {
|
||||
return $body;
|
||||
}
|
||||
return Help::toArray($body);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user