From 6ae53dc7d4c4dbe83270bebb0f26474e4d70d15f Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Thu, 12 Dec 2019 12:25:05 +0800 Subject: [PATCH] add clear --- common/Result.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/Result.php b/common/Result.php index b0fd136..1f8befa 100644 --- a/common/Result.php +++ b/common/Result.php @@ -38,6 +38,9 @@ class Result private function reloadResponse($header) { $data = []; + if (is_array($header)) { + return $header; + } $load = explode("\n", $header); if (!empty($load) && is_array($load)) { foreach ($load as $key => $val) {