改名
This commit is contained in:
@@ -64,15 +64,8 @@ class Curl extends ClientAbstracts
|
|||||||
{
|
{
|
||||||
[$host, $isHttps, $path] = $this->matchHost($path);
|
[$host, $isHttps, $path] = $this->matchHost($path);
|
||||||
|
|
||||||
if ($this->isSSL()) {
|
|
||||||
$host = 'https://' . $host . ':443';
|
|
||||||
} else {
|
|
||||||
$host = 'http://' . $host . ':' . $this->getPort();
|
|
||||||
}
|
|
||||||
|
|
||||||
$resource = $this->do(curl_init($host . $path), $host . $path, self::POST);
|
$resource = $this->do(curl_init($host . $path), $host . $path, self::POST);
|
||||||
|
|
||||||
curl_setopt($resource, CURLOPT_SAFE_UPLOAD, true);
|
|
||||||
curl_setopt($resource, CURLOPT_POSTFIELDS, $params);
|
curl_setopt($resource, CURLOPT_POSTFIELDS, $params);
|
||||||
|
|
||||||
if ($isHttps !== false) {
|
if ($isHttps !== false) {
|
||||||
|
|||||||
Reference in New Issue
Block a user