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": {