add clear

This commit is contained in:
2021-02-05 12:49:09 +08:00
parent 6d141c60cf
commit 075dcd3700
+3
View File
@@ -581,6 +581,9 @@ class HttpClient
} else if (isset($this->header['content-type'])) { } else if (isset($this->header['content-type'])) {
$contentType = $this->header['content-type']; $contentType = $this->header['content-type'];
} }
if ($contentType == 'multipart/form-data') {
return $data;
}
if (strpos($contentType, 'json') !== false) { if (strpos($contentType, 'json') !== false) {
return Help::toJson($data); return Help::toJson($data);