Skip to content

Commit

Permalink
Merge branch 'curl-debug-bug' of github.com:MGatner/CodeIgniter4 into…
Browse files Browse the repository at this point in the history
… feature/curl_debug_fix

sign merge
  • Loading branch information
michalsn committed Sep 14, 2019
1 parent aca12c4 commit c407a15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions system/HTTP/CURLRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -672,10 +672,10 @@ protected function setCURLOptions(array $curl_options = [], array $config = [])
}

// Debug
if (isset($config['debug']))
if ($config['debug'])
{
$curl_options[CURLOPT_VERBOSE] = $config['debug'] === false ? 0 : 1;
$curl_options[CURLOPT_STDERR] = is_string($config['debug']) ? fopen($config['debug'], 'w') : fopen('php://output', 'w+');
$curl_options[CURLOPT_VERBOSE] = 1;
$curl_options[CURLOPT_STDERR] = is_string($config['debug']) ? fopen($config['debug'], 'a+') : fopen('php://output', 'w+');
}

// Decode Content
Expand Down

0 comments on commit c407a15

Please sign in to comment.