add clear
This commit is contained in:
@@ -784,7 +784,6 @@ class HttpClient
|
||||
return $body;
|
||||
}
|
||||
$type = isset($data['content-type']) ? $data['content-type'] : (isset($data['Content-Type']) ? $data['Content-Type'] : 'text/html');
|
||||
var_dump($type, $body);
|
||||
if (strpos($type, 'text/html') !== false) {
|
||||
return $body;
|
||||
} else if (strpos($type, 'json') !== false) {
|
||||
@@ -792,6 +791,7 @@ class HttpClient
|
||||
} else if (strpos($type, 'xml') !== false) {
|
||||
return Help::xmlToArray($body);
|
||||
} else if (strpos($type, 'plain') !== false) {
|
||||
var_dump($type, $body);
|
||||
return Help::toArray($body);
|
||||
}
|
||||
return $body;
|
||||
|
||||
Reference in New Issue
Block a user