mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Missed a couple places during refactoring.
This commit is contained in:
parent
dfb719b1e1
commit
fbda1d5b30
@ -307,7 +307,7 @@ class CURLRequest extends Request
|
||||
* Takes all headers current part of this request and adds them
|
||||
* to the cURL request.
|
||||
*
|
||||
* @param $handle
|
||||
* @param array $curl_options
|
||||
*/
|
||||
protected function applyRequestHeaders(array $curl_options=[]): array
|
||||
{
|
||||
@ -366,7 +366,7 @@ class CURLRequest extends Request
|
||||
{
|
||||
if (! empty($this->body))
|
||||
{
|
||||
$this->curl_options[CURLOPT_POSTFIELDS] = (string)$this->body();
|
||||
$curl_options[CURLOPT_POSTFIELDS] = (string)$this->body();
|
||||
}
|
||||
|
||||
// curl sometimes adds a content type by default, prevent this
|
||||
@ -473,10 +473,10 @@ class CURLRequest extends Request
|
||||
}
|
||||
|
||||
// Timeout
|
||||
$curl_options[CURLOPT_TIMEOUT_MS] = (float)$this->config['timeout'] * 1000;
|
||||
$curl_options[CURLOPT_TIMEOUT_MS] = (float)$config['timeout'] * 1000;
|
||||
|
||||
// Connection Timeout
|
||||
$curl_options[CURLOPT_CONNECTTIMEOUT_MS] = (float)$this->config['connect_timeout'] * 1000;
|
||||
$curl_options[CURLOPT_CONNECTTIMEOUT_MS] = (float)$config['connect_timeout'] * 1000;
|
||||
|
||||
return $curl_options;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user