Skip to content

Commit 60f7e2a

Browse files
committed
Fix curl debug bug
1 parent 2b5fe95 commit 60f7e2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/HTTP/CURLRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ protected function setCURLOptions(array $curl_options = [], array $config = [])
682682
if ($config['debug'])
683683
{
684684
$curl_options[CURLOPT_VERBOSE] = 1;
685-
$curl_options[CURLOPT_STDERR] = is_string($config['debug']) ? fopen($config['debug'], 'a+') : fopen('php://output', 'w+');
685+
$curl_options[CURLOPT_STDERR] = is_string($config['debug']) ? fopen($config['debug'], 'a+') : fopen('php://stderr', 'w');
686686
}
687687

688688
// Decode Content

0 commit comments

Comments
 (0)