From 41d2032fb006fa23dc085b42bd54d48945e88614 Mon Sep 17 00:00:00 2001 From: lovefc Date: Fri, 25 Mar 2022 21:26:34 +0800 Subject: [PATCH] =?UTF-8?q?Cloud=20WAF=E4=BC=9A=E6=8B=A6=E6=88=AA=E5=A4=9A?= =?UTF-8?q?=E4=B8=AA=E9=87=8D=E5=A4=8D=E7=9A=84head=E5=A4=B4,=E4=B8=80?= =?UTF-8?q?=E5=AE=9A=E8=A6=81=E8=AE=B0=E5=BE=97=E6=B8=85=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FC/Http/Curl.php | 1 + README.md | 4 ++-- composer.json | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/FC/Http/Curl.php b/FC/Http/Curl.php index aba7fd3..df1b229 100644 --- a/FC/Http/Curl.php +++ b/FC/Http/Curl.php @@ -42,6 +42,7 @@ public function head($header = '') if (empty($header)) { return $this; } + $this->headers = []; //如果是数组的话 if (is_array($header)) { foreach ($header as $k => $v) { diff --git a/README.md b/README.md index d26465d..a0b134f 100644 --- a/README.md +++ b/README.md @@ -12,13 +12,13 @@ composer.json ```` { "require": { - "lovefc/fcphp": "6.2.4" + "lovefc/fcphp": "6.2.5" } } ```` ```` -composer require lovefc/fcphp:6.2.4 +composer require lovefc/fcphp:6.2.5 ```` ### 使用方法 diff --git a/composer.json b/composer.json index e200f80..6fc4167 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "lovefc/fcphp", "description": "FCPHP框架", "keywords": ["php","fcphp","php框架","framework"], - "version": "6.2.4", + "version": "6.2.5", "homepage": "https://gitee.com/lovefc/fcphp6.git", "license": "MIT", "require": {