This commit is contained in:
2020-11-18 17:00:16 +08:00
parent a47d1aaf06
commit 52093df208
4 changed files with 9 additions and 12 deletions
+1 -2
View File
@@ -114,7 +114,7 @@ class Curl extends ClientAbstracts
if ($method === self::POST || $method == self::UPLOAD) {
curl_setopt($resource, CURLOPT_POST, 1);
}
curl_setopt($resource, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($resource, CURLOPT_CUSTOMREQUEST, strtoupper($method));
return $resource;
}
@@ -207,7 +207,6 @@ class Curl extends ClientAbstracts
foreach ($this->getHeader() as $key => $val) {
$headers[$key] = $key . ': ' . $val;
}
var_dump($headers);
return array_values($headers);
}
}