add clear
This commit is contained in:
@@ -546,12 +546,9 @@ class HttpClient
|
||||
*/
|
||||
private function toRequest($data)
|
||||
{
|
||||
if (!is_array($data)) {
|
||||
$data = Help::toArray($data);
|
||||
if (is_string($data)) {
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
|
||||
$contentType = 'application/x-www-form-urlencoded';
|
||||
if (isset($this->header['Content-Type'])) {
|
||||
|
||||
Reference in New Issue
Block a user