Skip to content

Commit 41d2032

Browse files
committed
Cloud WAF会拦截多个重复的head头,一定要记得清空
1 parent 853907b commit 41d2032

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

FC/Http/Curl.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public function head($header = '')
4242
if (empty($header)) {
4343
return $this;
4444
}
45+
$this->headers = [];
4546
//如果是数组的话
4647
if (is_array($header)) {
4748
foreach ($header as $k => $v) {

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ composer.json
1212
````
1313
{
1414
"require": {
15-
"lovefc/fcphp": "6.2.4"
15+
"lovefc/fcphp": "6.2.5"
1616
}
1717
}
1818
````
1919

2020
````
21-
composer require lovefc/fcphp:6.2.4
21+
composer require lovefc/fcphp:6.2.5
2222
````
2323

2424
### 使用方法

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "lovefc/fcphp",
33
"description": "FCPHP框架",
44
"keywords": ["php","fcphp","php框架","framework"],
5-
"version": "6.2.4",
5+
"version": "6.2.5",
66
"homepage": "https://gitee.com/lovefc/fcphp6.git",
77
"license": "MIT",
88
"require": {

0 commit comments

Comments
 (0)