From c0992ce6154fbc42b28a4bea3ebdfaa86d86c33a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 30 Oct 2020 01:26:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Http/HttpParams.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpServer/Http/HttpParams.php b/HttpServer/Http/HttpParams.php index 22a8cf74..743af81c 100644 --- a/HttpServer/Http/HttpParams.php +++ b/HttpServer/Http/HttpParams.php @@ -41,7 +41,7 @@ class HttpParams { $this->gets = $get ?? []; $this->files = $files ?? []; - if (!is_array($this->body)) { + if (!is_array($body)) { $this->body = Help::toArray($this->body); } else { $this->body = $body;