This commit is contained in:
2020-10-30 17:00:15 +08:00
parent 00ea41b440
commit 936d91c776
+1 -1
View File
@@ -44,7 +44,7 @@ class HttpParams
if (!is_array($body)) {
$this->body = Help::toArray($body);
} else {
$this->body = $body;
$this->body = $body ?? [];
}
}