This commit is contained in:
2020-10-30 01:26:54 +08:00
parent 66f35513c2
commit c0992ce615
+1 -1
View File
@@ -41,7 +41,7 @@ class HttpParams
{ {
$this->gets = $get ?? []; $this->gets = $get ?? [];
$this->files = $files ?? []; $this->files = $files ?? [];
if (!is_array($this->body)) { if (!is_array($body)) {
$this->body = Help::toArray($this->body); $this->body = Help::toArray($this->body);
} else { } else {
$this->body = $body; $this->body = $body;