!168 修复http request post发送文件失败的问题

Merge pull request !168 from Muchu/fix_http
pull/168/MERGE
Karson 2020-02-27 10:38:18 +08:00 committed by Gitee
commit 597e50e722
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ class Http
} else {
$defaults[CURLOPT_CUSTOMREQUEST] = $method;
}
$defaults[CURLOPT_POSTFIELDS] = $query_string;
$defaults[CURLOPT_POSTFIELDS] = $params;
}
$defaults[CURLOPT_HEADER] = false;