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