mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-30 04:01:47 +00:00
Turn off CURLINFO_HEADER_OUT when enabling verbose
This commit is contained in:
@@ -797,6 +797,11 @@ class Curl
|
||||
*/
|
||||
public function verbose($on = true)
|
||||
{
|
||||
// Turn off CURLINFO_HEADER_OUT for verbose to work. This has the side
|
||||
// effect of causing Curl::requestHeaders to be empty.
|
||||
if ($on) {
|
||||
$this->setOpt(CURLINFO_HEADER_OUT, false);
|
||||
}
|
||||
$this->setOpt(CURLOPT_VERBOSE, $on);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user