Around Line 376 of Zend_Http_Client_Adapter_Curl you see an additional
header attribute added to the headers array.

 

376: $headers['Accept'] = '';

377: curl_setopt($this->_curl, CURLOPT_HTTPHEADER, $headers);

 

But the PHP documentation states that the $headers array should be
formatted differently:

"An array of HTTP header fields to set, in the format
array('Content-type: text/plain', 'Content-length: 100')"
(http://us.php.net/manual/en/function.curl-setopt.php)

 

Why is line 376 even needed?  In my case I want to set the Accept header
to something specific, and I don't want the Curl adapter changing it.

 

Is this a bug?

 

Thanks,

 

John

Reply via email to